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
  • Constructor Details

  • Method Details

    • graph

      public org.apache.tinkerpop.gremlin.structure.Graph graph()
      Specified by:
      graph in interface org.apache.tinkerpop.gremlin.structure.Element
    • setInternalPrimaryKey

      public void setInternalPrimaryKey(RecordId recordId)
    • getSchemaTablePrefixed

      public abstract SchemaTable getSchemaTablePrefixed()
    • getSchemaTable

      public abstract SchemaTable getSchemaTable()
    • id

      public Object id()
      Specified by:
      id in interface org.apache.tinkerpop.gremlin.structure.Element
    • label

      public String label()
      Specified by:
      label in interface org.apache.tinkerpop.gremlin.structure.Element
    • remove

      public void remove()
      Specified by:
      remove in interface org.apache.tinkerpop.gremlin.structure.Element
    • keys

      public Set<String> keys()
      Specified by:
      keys in interface org.apache.tinkerpop.gremlin.structure.Element
    • value

      public <V> V value(String key) throws NoSuchElementException
      Specified by:
      value in interface org.apache.tinkerpop.gremlin.structure.Element
      Throws:
      NoSuchElementException
    • property

      public <V> org.apache.tinkerpop.gremlin.structure.Property<V> property(String key)
      Specified by:
      property in interface org.apache.tinkerpop.gremlin.structure.Element
    • property

      public <V> org.apache.tinkerpop.gremlin.structure.Property<V> property(String key, V value)
      Specified by:
      property in interface org.apache.tinkerpop.gremlin.structure.Element
    • load

      protected abstract void load()
      load the row from the db and caches the results in the element
    • getSchema

      public String getSchema()
    • getTable

      public String getTable()
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • properties

      public <V> Iterator<? extends org.apache.tinkerpop.gremlin.structure.Property<V>> properties(String... propertyKeys)
      Specified by:
      properties in interface org.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

      public void internalSetProperty(String property, Object value)
    • getInternalStartTraverserIndex

      public long getInternalStartTraverserIndex()
    • setInternalStartTraverserIndex

      public void setInternalStartTraverserIndex(long internalStartTraverserIndex)