Class OrientStandardGraph

java.lang.Object
org.apache.tinkerpop.gremlin.orientdb.OrientStandardGraph
All Implemented Interfaces:
AutoCloseable, OGraph, org.apache.tinkerpop.gremlin.structure.Graph, org.apache.tinkerpop.gremlin.structure.util.Host

public class OrientStandardGraph extends Object implements OGraph
Created by Enrico Risa on 30/08/2017.
  • Field Details

  • Constructor Details

    • OrientStandardGraph

      public OrientStandardGraph(OrientGraphBaseFactory factory, org.apache.commons.configuration2.Configuration config)
  • Method Details

    • addVertex

      public org.apache.tinkerpop.gremlin.structure.Vertex addVertex(Object... keyValues)
      Specified by:
      addVertex in interface org.apache.tinkerpop.gremlin.structure.Graph
    • compute

      public <C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer> C compute(Class<C> graphComputerClass) throws IllegalArgumentException
      Specified by:
      compute in interface org.apache.tinkerpop.gremlin.structure.Graph
      Throws:
      IllegalArgumentException
    • compute

      public org.apache.tinkerpop.gremlin.process.computer.GraphComputer compute() throws IllegalArgumentException
      Specified by:
      compute in interface org.apache.tinkerpop.gremlin.structure.Graph
      Throws:
      IllegalArgumentException
    • vertices

      public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(Object... vertexIds)
      Specified by:
      vertices in interface org.apache.tinkerpop.gremlin.structure.Graph
    • edges

      public Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(Object... edgeIds)
      Specified by:
      edges in interface org.apache.tinkerpop.gremlin.structure.Graph
    • tx

      public org.apache.tinkerpop.gremlin.structure.Transaction tx()
      Specified by:
      tx in interface org.apache.tinkerpop.gremlin.structure.Graph
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.apache.tinkerpop.gremlin.structure.Graph
      Throws:
      Exception
    • variables

      public org.apache.tinkerpop.gremlin.structure.Graph.Variables variables()
      Specified by:
      variables in interface org.apache.tinkerpop.gremlin.structure.Graph
    • features

      public org.apache.tinkerpop.gremlin.structure.Graph.Features features()
      Specified by:
      features in interface org.apache.tinkerpop.gremlin.structure.Graph
    • configuration

      public org.apache.commons.configuration2.Configuration configuration()
      Specified by:
      configuration in interface org.apache.tinkerpop.gremlin.structure.Graph
    • graph

      protected OrientGraph graph()
    • io

      public <I extends org.apache.tinkerpop.gremlin.structure.io.Io> I io(org.apache.tinkerpop.gremlin.structure.io.Io.Builder<I> builder)
      Specified by:
      io in interface org.apache.tinkerpop.gremlin.structure.Graph
    • drop

      public void drop()
    • closeGraphs

      protected void closeGraphs()
    • labelToClassName

      public String labelToClassName(String label, String prefix)
      Specified by:
      labelToClassName in interface OGraph
    • classNameToLabel

      public String classNameToLabel(String className)
      Specified by:
      classNameToLabel in interface OGraph
    • createEdgeClass

      public String createEdgeClass(String label)
      Specified by:
      createEdgeClass in interface OGraph
    • createVertexClass

      public String createVertexClass(String label)
      Specified by:
      createVertexClass in interface OGraph
    • getIndexedVertices

      public Stream<OrientVertex> getIndexedVertices(OIndex index, Iterator<Object> valueIter)
      Specified by:
      getIndexedVertices in interface OGraph
    • getIndexedEdges

      public Stream<OrientEdge> getIndexedEdges(OIndex index, Iterator<Object> valueIter)
      Specified by:
      getIndexedEdges in interface OGraph
    • getRawDatabase

      public ODatabaseDocument getRawDatabase()
      Specified by:
      getRawDatabase in interface OGraph
    • executeSql

      public OGremlinResultSet executeSql(String sql, Map params)
      Specified by:
      executeSql in interface OGraph
    • querySql

      public OGremlinResultSet querySql(String sql, Map params)
      Specified by:
      querySql in interface OGraph
    • getIndexedKeys

      public Set<String> getIndexedKeys(Class<? extends org.apache.tinkerpop.gremlin.structure.Element> elementClass, String label)
      Specified by:
      getIndexedKeys in interface OGraph
    • existClass

      public boolean existClass(String label)
      Specified by:
      existClass in interface OGraph
    • elementFactory

      public OElementFactory elementFactory()
      Specified by:
      elementFactory in interface OGraph
    • isOpen

      public boolean isOpen()
    • toString

      public String toString()
      Overrides:
      toString in class Object