Package org.umlg.sqlg.structure
Class SqlgEdge
java.lang.Object
org.umlg.sqlg.structure.SqlgElement
org.umlg.sqlg.structure.SqlgEdge
- All Implemented Interfaces:
org.apache.tinkerpop.gremlin.structure.Edge
,org.apache.tinkerpop.gremlin.structure.Element
Date: 2014/07/12
Time: 5:41 AM
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Edge
org.apache.tinkerpop.gremlin.structure.Edge.Exceptions
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
org.apache.tinkerpop.gremlin.structure.Element.Exceptions
-
Field Summary
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.Edge
DEFAULT_LABEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
load()
load the row from the db and caches the results in the elementvoid
loadEdgeInOutVertices
(SchemaTable outVertexSchemaTable, Long outId, SchemaTable inVertexSchemaTable, Long inId) void
loadInVertex
(ResultSet resultSet, List<ColumnList.Column> inForeignKeyColumns) void
loadInVertex
(ResultSet resultSet, SchemaTable inVertexSchemaTable, int columnIdx) void
loadOutVertex
(ResultSet resultSet, List<ColumnList.Column> outForeignKeyColumns) void
loadOutVertex
(ResultSet resultSet, SchemaTable outVertexSchemaTable, int columnIdx) static SqlgEdge
static SqlgEdge
<V> Iterator<org.apache.tinkerpop.gremlin.structure.Property<V>>
properties
(String... propertyKeys) void
remove()
toString()
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>
vertices
(org.apache.tinkerpop.gremlin.structure.Direction direction) Methods inherited from class org.umlg.sqlg.structure.SqlgElement
equals, getInternalStartTraverserIndex, getSchema, getTable, graph, hashCode, id, internalSetProperty, keys, label, loadProperty, loadProperty, property, property, 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.Edge
bothVertices, inVertex, outVertex
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Element
graph, id, keys, label, property, property, value, values
-
Constructor Details
-
SqlgEdge
public SqlgEdge(SqlgGraph sqlgGraph, List<Comparable> identifiers, String schema, String table, int numberOfColumns) -
SqlgEdge
-
-
Method Details
-
of
-
of
-
remove
public void remove()- Specified by:
remove
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
- Overrides:
remove
in classSqlgElement
-
getInVertex
-
getOutVertex
-
toString
-
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
-
loadEdgeInOutVertices
public void loadEdgeInOutVertices(SchemaTable outVertexSchemaTable, Long outId, SchemaTable inVertexSchemaTable, Long inId) -
loadInVertex
public void loadInVertex(ResultSet resultSet, SchemaTable inVertexSchemaTable, int columnIdx) throws SQLException - Throws:
SQLException
-
loadInVertex
-
loadOutVertex
public void loadOutVertex(ResultSet resultSet, SchemaTable outVertexSchemaTable, int columnIdx) throws SQLException - Throws:
SQLException
-
loadOutVertex
-
properties
public <V> Iterator<org.apache.tinkerpop.gremlin.structure.Property<V>> properties(String... propertyKeys) - Specified by:
properties
in interfaceorg.apache.tinkerpop.gremlin.structure.Edge
- Specified by:
properties
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
- Overrides:
properties
in classSqlgElement
-
vertices
public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(org.apache.tinkerpop.gremlin.structure.Direction direction) - Specified by:
vertices
in interfaceorg.apache.tinkerpop.gremlin.structure.Edge
-
getSchemaTablePrefixed
- Specified by:
getSchemaTablePrefixed
in classSqlgElement
-
getSchemaTable
- Specified by:
getSchemaTable
in classSqlgElement
-