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

    • SqlgVertex

      public SqlgVertex(SqlgGraph sqlgGraph, String schema, String table, Map<String,Object> keyValueMap)
      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 graph
      vertexLabel - The vertex's VertexLabel
      schema - The vertex's schema
      table - The vertex's table
      keyValueMap - 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

      public static SqlgVertex of(SqlgGraph sqlgGraph, Long id, String schema, String table)
    • 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

      public String label()
      Specified by:
      label in interface org.apache.tinkerpop.gremlin.structure.Element
      Overrides:
      label in class SqlgElement
    • addEdgeWithMap

      public org.apache.tinkerpop.gremlin.structure.Edge addEdgeWithMap(String label, org.apache.tinkerpop.gremlin.structure.Vertex inVertex, Map<String,Object> keyValues)
    • streamEdge

      public void streamEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex inVertex)
    • 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:
      addEdge in interface org.apache.tinkerpop.gremlin.structure.Vertex
    • internalGetProperties

      protected <V> Map<String,org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> internalGetProperties(String... propertyKeys)
    • property

      public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property(String key)
      Specified by:
      property in interface org.apache.tinkerpop.gremlin.structure.Element
      Specified by:
      property in interface org.apache.tinkerpop.gremlin.structure.Vertex
      Overrides:
      property in class SqlgElement
    • property

      public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property(String key, V value)
      Specified by:
      property in interface org.apache.tinkerpop.gremlin.structure.Element
      Specified by:
      property in interface org.apache.tinkerpop.gremlin.structure.Vertex
      Overrides:
      property in class SqlgElement
    • property

      public <V> org.apache.tinkerpop.gremlin.structure.VertexProperty<V> property(String key, V value, Object... keyValues)
      Specified by:
      property in interface org.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:
      property in interface org.apache.tinkerpop.gremlin.structure.Vertex
    • instantiateProperty

      protected <V> SqlgProperty<V> instantiateProperty(String key, V value)
    • emptyProperty

      protected org.apache.tinkerpop.gremlin.structure.Property<?> emptyProperty()
    • remove

      public void remove()
      Specified by:
      remove in interface org.apache.tinkerpop.gremlin.structure.Element
      Overrides:
      remove in class SqlgElement
    • 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 class SqlgElement
    • loadResultSet

      public void loadResultSet(ResultSet resultSet) throws SQLException
      Throws:
      SQLException
    • edges

      public Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
      Specified by:
      edges in interface org.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:
      vertices in interface org.apache.tinkerpop.gremlin.structure.Vertex
    • properties

      public <V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties(String... propertyKeys)
      Specified by:
      properties in interface org.apache.tinkerpop.gremlin.structure.Element
      Specified by:
      properties in interface org.apache.tinkerpop.gremlin.structure.Vertex
      Overrides:
      properties in class SqlgElement
    • getSchemaTablePrefixed

      public SchemaTable getSchemaTablePrefixed()
      Specified by:
      getSchemaTablePrefixed in class SqlgElement
    • getSchemaTable

      public SchemaTable getSchemaTable()
      Specified by:
      getSchemaTable in class SqlgElement
    • toString

      public String toString()
      Overrides:
      toString in class Object