Package org.umlg.sqlg.structure
Class SqlgVertex
java.lang.Object
org.umlg.sqlg.structure.SqlgElement
org.umlg.sqlg.structure.SqlgVertex
- All Implemented Interfaces:
org.apache.tinkerpop.gremlin.structure.Element
,org.apache.tinkerpop.gremlin.structure.util.Host
,org.apache.tinkerpop.gremlin.structure.Vertex
public class SqlgVertex
extends SqlgElement
implements org.apache.tinkerpop.gremlin.structure.Vertex
Date: 2014/07/12
Time: 5:42 AM
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
org.apache.tinkerpop.gremlin.structure.Element.Exceptions
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Vertex
org.apache.tinkerpop.gremlin.structure.Vertex.Exceptions
-
Field Summary
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.Vertex
DEFAULT_LABEL, EMPTY_ARGS
-
Constructor Summary
ConstructorDescriptionSqlgVertex
(SqlgGraph sqlgGraph, VertexLabel vertexLabel, String schema, String table, Map<String, Object> keyValueMap) SqlgVertex
(SqlgGraph sqlgGraph, VertexLabel vertexLabel, SchemaTable schemaTable, Map<String, Object> keyValueMap) Used for streamingVertex -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.tinkerpop.gremlin.structure.Edge
org.apache.tinkerpop.gremlin.structure.Edge
addEdgeWithMap
(String label, org.apache.tinkerpop.gremlin.structure.Vertex inVertex, Map<String, Object> keyValues) Iterator<org.apache.tinkerpop.gremlin.structure.Edge>
protected org.apache.tinkerpop.gremlin.structure.Property<?>
protected <V> SqlgProperty<V>
instantiateProperty
(String key, V value) internalGetProperties
(String... propertyKeys) label()
protected void
load()
load the row from the db and caches the results in the elementvoid
loadResultSet
(ResultSet resultSet) static SqlgVertex
static SqlgVertex
static SqlgVertex
static SqlgVertex
<V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>>
properties
(String... propertyKeys) <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V>
<V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V>
<V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V>
<V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V>
property
(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues) void
remove()
void
streamEdge
(String label, org.apache.tinkerpop.gremlin.structure.Vertex inVertex) void
streamEdge
(String label, org.apache.tinkerpop.gremlin.structure.Vertex inVertex, LinkedHashMap<String, Object> keyValues) toString()
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>
Methods inherited from class org.umlg.sqlg.structure.SqlgElement
equals, getInternalStartTraverserIndex, getSchema, getTable, graph, hashCode, id, internalSetProperty, keys, loadProperty, loadProperty, setInternalPrimaryKey, setInternalStartTraverserIndex, value
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Element
graph, id, keys, value, values
-
Constructor Details
-
SqlgVertex
- Parameters:
sqlgGraph
- The graph.schema
- The database schema.table
- The table name.keyValueMap
- The properties.
-
SqlgVertex
public SqlgVertex(SqlgGraph sqlgGraph, VertexLabel vertexLabel, String schema, String table, Map<String, Object> keyValueMap) - Parameters:
sqlgGraph
- The graphvertexLabel
- The vertex's VertexLabelschema
- The vertex's schematable
- The vertex's tablekeyValueMap
- The vertex's properties
-
SqlgVertex
public SqlgVertex(SqlgGraph sqlgGraph, VertexLabel vertexLabel, SchemaTable schemaTable, Map<String, Object> keyValueMap) Used for streamingVertex- Parameters:
sqlgGraph
- The graph.schemaTable
- The SchemaTable being streamed into.
-
-
Method Details
-
of
public static SqlgVertex of(SqlgGraph sqlgGraph, Long id, String schema, String table, int columnCount) -
of
-
of
public static SqlgVertex of(SqlgGraph sqlgGraph, List<Comparable> identifiers, String schema, String table, int columnCount) -
of
public static SqlgVertex of(SqlgGraph sqlgGraph, List<Comparable> identifiers, String schema, String table) -
label
- Specified by:
label
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
- Overrides:
label
in classSqlgElement
-
addEdgeWithMap
-
streamEdge
-
streamEdge
public void streamEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex inVertex, LinkedHashMap<String, Object> keyValues) -
addEdge
public org.apache.tinkerpop.gremlin.structure.Edge addEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex inVertex, Object... keyValues) - Specified by:
addEdge
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
-
internalGetProperties
-
property
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
- Overrides:
property
in classSqlgElement
-
property
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
- Overrides:
property
in classSqlgElement
-
property
public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property(String key, V value, Object... keyValues) - Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
-
property
public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues) - Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
-
instantiateProperty
-
emptyProperty
protected org.apache.tinkerpop.gremlin.structure.Property<?> emptyProperty() -
remove
public void remove()- Specified by:
remove
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
- Overrides:
remove
in classSqlgElement
-
load
protected void load()Description copied from class:SqlgElement
load the row from the db and caches the results in the element- Specified by:
load
in classSqlgElement
-
loadResultSet
- Throws:
SQLException
-
edges
public Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels) - Specified by:
edges
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
-
vertices
public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels) - Specified by:
vertices
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
-
properties
public <V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties(String... propertyKeys) - Specified by:
properties
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
- Specified by:
properties
in interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
- Overrides:
properties
in classSqlgElement
-
getSchemaTablePrefixed
- Specified by:
getSchemaTablePrefixed
in classSqlgElement
-
getSchemaTable
- Specified by:
getSchemaTable
in classSqlgElement
-
toString
-