Interface OrientExtendedGraph

All Superinterfaces:
com.tinkerpop.blueprints.Graph, com.tinkerpop.blueprints.IndexableGraph, com.tinkerpop.blueprints.KeyIndexableGraph, com.tinkerpop.blueprints.MetaGraph<ODatabaseDocumentTx>
All Known Implementing Classes:
OrientBaseGraph, OrientGraph, OrientGraphNoTx, OrientTransactionalGraph

public interface OrientExtendedGraph extends com.tinkerpop.blueprints.IndexableGraph, com.tinkerpop.blueprints.MetaGraph<ODatabaseDocumentTx>, com.tinkerpop.blueprints.KeyIndexableGraph
OrientDB extension to Blueprints standard.
Author:
Luca Garulli (l.garulli--(at)--orientdb.com) (http://orientdb.com)
  • Method Details

    • drop

      void drop()
      (Blueprints Extension) Drops the database
    • addTemporaryVertex

      OrientVertex addTemporaryVertex(String iClassName, Object... prop)
      (Blueprints Extension) Creates a temporary vertex setting the initial field values. The vertex is not saved and the transaction is not started.
      Parameters:
      iClassName - Vertex's class name
      prop - Fields must be a odd pairs of key/value or a single object as Map containing entries as key/value pairs
      Returns:
      added vertex
    • addVertex

      com.tinkerpop.blueprints.Vertex addVertex(Object id, Object... prop)
      (Blueprints Extension) Creates a new unconnected vertex in the Graph setting the initial field values.
      Parameters:
      id - Optional, can contains the Edge's class name by prefixing with "class:"
      prop - Fields must be a odd pairs of key/value or a single object as Map containing entries as key/value pairs
      Returns:
      The new OrientVertex created
    • getVertexBaseType

      OrientVertexType getVertexBaseType()
      Returns the V persistent class as OrientVertexType instance.
    • getVertexType

      OrientVertexType getVertexType(String iTypeName)
      Returns the persistent class for type iTypeName as OrientVertexType instance.
      Parameters:
      iTypeName - Vertex class name
    • createVertexType

      OrientVertexType createVertexType(String iClassName)
      Creates a new Vertex persistent class.
      Parameters:
      iClassName - Vertex class name
      Returns:
      OrientVertexType instance representing the persistent class
    • createVertexType

      OrientVertexType createVertexType(String iClassName, int clusters)
      Creates a new Vertex persistent class.
      Parameters:
      iClassName - Vertex class name
      clusters - The number of clusters to create for the new class. By default the MINIMUMCLUSTERS database setting is used. In v2.2 and later, the number of clusters are proportioned to the amount of cores found on the machine
      Returns:
      OrientVertexType instance representing the persistent class
    • createVertexType

      OrientVertexType createVertexType(String iClassName, String iSuperClassName)
      Creates a new Vertex persistent class specifying the super class.
      Parameters:
      iClassName - Vertex class name
      iSuperClassName - Vertex class name to extend
      Returns:
      OrientVertexType instance representing the persistent class
    • createVertexType

      OrientVertexType createVertexType(String iClassName, String iSuperClassName, int clusters)
      Creates a new Vertex persistent class specifying the super class.
      Parameters:
      iClassName - Vertex class name
      iSuperClassName - Vertex class name to extend
      clusters - The number of clusters to create for the new class. By default the MINIMUMCLUSTERS database setting is used. In v2.2 and later, the number of clusters are proportioned to the amount of cores found on the machine
      Returns:
      OrientVertexType instance representing the persistent class
    • createVertexType

      OrientVertexType createVertexType(String iClassName, OClass iSuperClass)
      Creates a new Vertex persistent class specifying the super class.
      Parameters:
      iClassName - Vertex class name
      iSuperClass - OClass Vertex to extend
      Returns:
      OrientVertexType instance representing the persistent class
    • createVertexType

      OrientVertexType createVertexType(String iClassName, OClass iSuperClass, int clusters)
      Creates a new Vertex persistent class specifying the super class.
      Parameters:
      iClassName - Vertex class name
      iSuperClass - OClass Vertex to extend
      clusters - The number of clusters to create for the new class. By default the MINIMUMCLUSTERS database setting is used. In v2.2 and later, the number of clusters are proportioned to the amount of cores found on the machine
      Returns:
      OrientVertexType instance representing the persistent class
    • dropVertexType

      void dropVertexType(String iTypeName)
      Drop a vertex class.
      Parameters:
      iTypeName - Vertex class name
    • getEdgeBaseType

      OrientEdgeType getEdgeBaseType()
      Returns the E persistent class as OrientEdgeType instance.
    • getEdgeType

      OrientEdgeType getEdgeType(String iTypeName)
      Returns the persistent class for type iTypeName as OrientEdgeType instance.
      Parameters:
      iTypeName - Edge class name
    • createEdgeType

      OrientEdgeType createEdgeType(String iClassName)
      Creates a new Edge persistent class.
      Parameters:
      iClassName - Edge class name
      Returns:
      OrientEdgeType instance representing the persistent class
    • createEdgeType

      OrientEdgeType createEdgeType(String iClassName, String iSuperClassName)
      Creates a new Edge persistent class specifying the super class.
      Parameters:
      iClassName - Edge class name
      iSuperClassName - Edge class name to extend
      Returns:
      OrientEdgeType instance representing the persistent class
    • createEdgeType

      OrientEdgeType createEdgeType(String iClassName, OClass iSuperClass)
      Creates a new Edge persistent class specifying the super class.
      Parameters:
      iClassName - Edge class name
      iSuperClass - OClass Edge to extend
      Returns:
      OrientEdgeType instance representing the persistent class
    • createEdgeType

      OrientEdgeType createEdgeType(String iClassName, OClass iSuperClass, int clusters)
      Creates a new Edge persistent class specifying the super class.
      Parameters:
      iClassName - Edge class name
      iSuperClass - OClass Edge to extend
      clusters - The number of clusters to create for the new class. By default the MINIMUMCLUSTERS database setting is used. In v2.2 and later, the number of clusters are proportioned to the amount of cores found on the machine
      Returns:
      OrientEdgeType instance representing the persistent class
    • dropEdgeType

      void dropEdgeType(String iTypeName)
      Drops an edge class.
      Parameters:
      iTypeName - Edge class name
    • detach

      OrientElement detach(OrientElement iElement)
      Detaches a Graph Element to be used offline. All the changes will be committed on further @attach call.
      Parameters:
      iElement - Graph element to detach
      Returns:
      The detached element
      See Also:
    • attach

      OrientElement attach(OrientElement iElement)
      Attaches a previously detached Graph Element to the current Graph. All the pending changes will be committed.
      Parameters:
      iElement - Graph element to attach
      Returns:
      The attached element
      See Also:
    • query

      com.tinkerpop.blueprints.GraphQuery query()
      Returns a GraphQuery object to execute queries against the Graph.
      Specified by:
      query in interface com.tinkerpop.blueprints.Graph
      Returns:
      new GraphQuery instance
    • traverse

      OTraverse traverse()
      Returns a OTraverse object to start traversing the graph.
    • command

      OCommandRequest command(OCommandRequest iCommand)
      Executes commands against the graph. Commands are executed outside transaction.
      Parameters:
      iCommand - Command request between SQL, GREMLIN and SCRIPT commands
    • countVertices

      long countVertices()
      Counts the vertices in graph.
      Returns:
      Long as number of total vertices
    • countVertices

      long countVertices(String iClassName)
      Counts the vertices in graph of a particular class.
      Returns:
      Long as number of total vertices
    • countEdges

      long countEdges()
      Counts the edges in graph. Edge counting works only if useLightweightEdges is false.
      Returns:
      Long as number of total edges
    • countEdges

      long countEdges(String iClassName)
      Counts the edges in graph of a particular class. Edge counting works only if useLightweightEdges is false.
      Returns:
      Long as number of total edges
    • declareIntent

      void declareIntent(OIntent iIntent)
      Declare an intent.
    • getConflictStrategy

      ORecordConflictStrategy getConflictStrategy()
    • setConflictStrategy

      OrientExtendedGraph setConflictStrategy(ORecordConflictStrategy iResolver)
    • setConflictStrategy

      OrientExtendedGraph setConflictStrategy(String iStrategyName)