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.ExceptionsNested 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
ConstructorsConstructorDescriptionSqlgVertex(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.Edgeorg.apache.tinkerpop.gremlin.structure.EdgeaddEdgeWithMap(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 voidload()load the row from the db and caches the results in the elementvoidloadResultSet(ResultSet resultSet) static SqlgVertexstatic SqlgVertexstatic SqlgVertexstatic 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) voidremove()voidstreamEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex inVertex) voidstreamEdge(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, valueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
 labelin interfaceorg.apache.tinkerpop.gremlin.structure.Element- Overrides:
 labelin 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:
 addEdgein interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
 - 
internalGetProperties
 - 
property
- Specified by:
 propertyin interfaceorg.apache.tinkerpop.gremlin.structure.Element- Specified by:
 propertyin interfaceorg.apache.tinkerpop.gremlin.structure.Vertex- Overrides:
 propertyin classSqlgElement
 - 
property
- Specified by:
 propertyin interfaceorg.apache.tinkerpop.gremlin.structure.Element- Specified by:
 propertyin interfaceorg.apache.tinkerpop.gremlin.structure.Vertex- Overrides:
 propertyin classSqlgElement
 - 
property
public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property(String key, V value, Object... keyValues) - Specified by:
 propertyin 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:
 propertyin interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
 - 
instantiateProperty
 - 
emptyProperty
protected org.apache.tinkerpop.gremlin.structure.Property<?> emptyProperty() - 
remove
public void remove()- Specified by:
 removein interfaceorg.apache.tinkerpop.gremlin.structure.Element- Overrides:
 removein classSqlgElement
 - 
load
protected void load()Description copied from class:SqlgElementload the row from the db and caches the results in the element- Specified by:
 loadin 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:
 edgesin 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:
 verticesin interfaceorg.apache.tinkerpop.gremlin.structure.Vertex
 - 
properties
public <V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties(String... propertyKeys) - Specified by:
 propertiesin interfaceorg.apache.tinkerpop.gremlin.structure.Element- Specified by:
 propertiesin interfaceorg.apache.tinkerpop.gremlin.structure.Vertex- Overrides:
 propertiesin classSqlgElement
 - 
getSchemaTablePrefixed
- Specified by:
 getSchemaTablePrefixedin classSqlgElement
 - 
getSchemaTable
- Specified by:
 getSchemaTablein classSqlgElement
 - 
toString
 
 -