Package org.umlg.sqlg.structure
Class SqlgElement
java.lang.Object
org.umlg.sqlg.structure.SqlgElement
- All Implemented Interfaces:
org.apache.tinkerpop.gremlin.structure.Element
- Direct Known Subclasses:
SqlgEdge
,SqlgVertex
public abstract class SqlgElement
extends Object
implements org.apache.tinkerpop.gremlin.structure.Element
Date: 2014/07/12
Time: 5:40 AM
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
org.apache.tinkerpop.gremlin.structure.Element.Exceptions
-
Constructor Summary
ConstructorDescriptionSqlgElement
(SqlgGraph sqlgGraph, Long id, String schema, String table) SqlgElement
(SqlgGraph sqlgGraph, Long id, String schema, String table, int columnCount) SqlgElement
(SqlgGraph sqlgGraph, String schema, String table) SqlgElement
(SqlgGraph sqlgGraph, List<Comparable> identifiers, String schema, String table) SqlgElement
(SqlgGraph sqlgGraph, List<Comparable> identifiers, String schema, String table, int columnCount) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
abstract SchemaTable
abstract SchemaTable
getTable()
org.apache.tinkerpop.gremlin.structure.Graph
graph()
int
hashCode()
id()
void
internalSetProperty
(String property, Object value) keys()
label()
protected abstract void
load()
load the row from the db and caches the results in the elementboolean
loadProperty
(ResultSet resultSet, String propertyName, int columnIndex, Map<String, String> columnNameAliasMap, int stepDepth, PropertyDefinition propertyDefinition) boolean
loadProperty
(ResultSet resultSet, String propertyName, int columnIndex, Map<String, String> columnNameAliasMap, int stepDepth, PropertyDefinition propertyDefinition, boolean isAverage) <V> Iterator<? extends org.apache.tinkerpop.gremlin.structure.Property<V>>
properties
(String... propertyKeys) <V> org.apache.tinkerpop.gremlin.structure.Property<V>
<V> org.apache.tinkerpop.gremlin.structure.Property<V>
void
remove()
void
setInternalPrimaryKey
(RecordId recordId) void
setInternalStartTraverserIndex
(long internalStartTraverserIndex) <V> V
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Element
values
-
Constructor Details
-
SqlgElement
-
SqlgElement
-
SqlgElement
-
SqlgElement
-
SqlgElement
public SqlgElement(SqlgGraph sqlgGraph, List<Comparable> identifiers, String schema, String table, int columnCount)
-
-
Method Details
-
graph
public org.apache.tinkerpop.gremlin.structure.Graph graph()- Specified by:
graph
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
setInternalPrimaryKey
-
getSchemaTablePrefixed
-
getSchemaTable
-
id
- Specified by:
id
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
label
- Specified by:
label
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
remove
public void remove()- Specified by:
remove
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
keys
- Specified by:
keys
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
value
- Specified by:
value
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
- Throws:
NoSuchElementException
-
property
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
property
- Specified by:
property
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
load
protected abstract void load()load the row from the db and caches the results in the element -
getSchema
-
getTable
-
equals
-
hashCode
public int hashCode() -
properties
public <V> Iterator<? extends org.apache.tinkerpop.gremlin.structure.Property<V>> properties(String... propertyKeys) - Specified by:
properties
in interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
loadProperty
public boolean loadProperty(ResultSet resultSet, String propertyName, int columnIndex, Map<String, String> columnNameAliasMap, int stepDepth, PropertyDefinition propertyDefinition) throws SQLException- Throws:
SQLException
-
loadProperty
public boolean loadProperty(ResultSet resultSet, String propertyName, int columnIndex, Map<String, String> columnNameAliasMap, int stepDepth, PropertyDefinition propertyDefinition, boolean isAverage) throws SQLException- Returns:
- true if the property was setted, else false.
- Throws:
SQLException
-
internalSetProperty
-
getInternalStartTraverserIndex
public long getInternalStartTraverserIndex() -
setInternalStartTraverserIndex
public void setInternalStartTraverserIndex(long internalStartTraverserIndex)
-