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
ConstructorsConstructorDescriptionSqlgElement(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 TypeMethodDescriptionbooleanlongabstract SchemaTableabstract SchemaTablegetTable()org.apache.tinkerpop.gremlin.structure.Graphgraph()inthashCode()id()voidinternalSetProperty(String property, Object value) keys()label()protected abstract voidload()load the row from the db and caches the results in the elementbooleanloadProperty(ResultSet resultSet, String propertyName, int columnIndex, Map<String, String> columnNameAliasMap, int stepDepth, PropertyDefinition propertyDefinition) booleanloadProperty(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>voidremove()voidsetInternalPrimaryKey(RecordId recordId) voidsetInternalStartTraverserIndex(long internalStartTraverserIndex) <V> VMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
graphin interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
setInternalPrimaryKey
-
getSchemaTablePrefixed
-
getSchemaTable
-
id
- Specified by:
idin interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
label
- Specified by:
labelin interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
remove
public void remove()- Specified by:
removein interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
keys
- Specified by:
keysin interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
value
- Specified by:
valuein interfaceorg.apache.tinkerpop.gremlin.structure.Element- Throws:
NoSuchElementException
-
property
- Specified by:
propertyin interfaceorg.apache.tinkerpop.gremlin.structure.Element
-
property
- Specified by:
propertyin 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:
propertiesin 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)
-