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 Summary
Modifier and TypeMethodDescriptionaddTemporaryVertex(String iClassName, Object... prop) (Blueprints Extension) Creates a temporary vertex setting the initial field values.com.tinkerpop.blueprints.Vertex(Blueprints Extension) Creates a new unconnected vertex in the Graph setting the initial field values.attach(OrientElement iElement) Attaches a previously detached Graph Element to the current Graph.command(OCommandRequest iCommand) Executes commands against the graph.longCounts the edges in graph.longcountEdges(String iClassName) Counts the edges in graph of a particular class.longCounts the vertices in graph.longcountVertices(String iClassName) Counts the vertices in graph of a particular class.createEdgeType(String iClassName) Creates a new Edge persistent class.createEdgeType(String iClassName, OClass iSuperClass) Creates a new Edge persistent class specifying the super class.createEdgeType(String iClassName, OClass iSuperClass, int clusters) Creates a new Edge persistent class specifying the super class.createEdgeType(String iClassName, String iSuperClassName) Creates a new Edge persistent class specifying the super class.createVertexType(String iClassName) Creates a new Vertex persistent class.createVertexType(String iClassName, int clusters) Creates a new Vertex persistent class.createVertexType(String iClassName, OClass iSuperClass) Creates a new Vertex persistent class specifying the super class.createVertexType(String iClassName, OClass iSuperClass, int clusters) Creates a new Vertex persistent class specifying the super class.createVertexType(String iClassName, String iSuperClassName) Creates a new Vertex persistent class specifying the super class.createVertexType(String iClassName, String iSuperClassName, int clusters) Creates a new Vertex persistent class specifying the super class.voiddeclareIntent(OIntent iIntent) Declare an intent.detach(OrientElement iElement) Detaches a Graph Element to be used offline.voiddrop()(Blueprints Extension) Drops the databasevoiddropEdgeType(String iTypeName) Drops an edge class.voiddropVertexType(String iTypeName) Drop a vertex class.Returns the E persistent class as OrientEdgeType instance.getEdgeType(String iTypeName) Returns the persistent class for type iTypeName as OrientEdgeType instance.Returns the V persistent class as OrientVertexType instance.getVertexType(String iTypeName) Returns the persistent class for type iTypeName as OrientVertexType instance.com.tinkerpop.blueprints.GraphQueryquery()Returns a GraphQuery object to execute queries against the Graph.setConflictStrategy(ORecordConflictStrategy iResolver) setConflictStrategy(String iStrategyName) traverse()Returns a OTraverse object to start traversing the graph.Methods inherited from interface com.tinkerpop.blueprints.Graph
addEdge, addVertex, getEdge, getEdges, getEdges, getFeatures, getVertex, getVertices, getVertices, removeEdge, removeVertex, shutdownMethods inherited from interface com.tinkerpop.blueprints.IndexableGraph
createIndex, dropIndex, getIndex, getIndicesMethods inherited from interface com.tinkerpop.blueprints.KeyIndexableGraph
createKeyIndex, dropKeyIndex, getIndexedKeysMethods inherited from interface com.tinkerpop.blueprints.MetaGraph
getRawGraph
-
Method Details
-
drop
void drop()(Blueprints Extension) Drops the database -
addTemporaryVertex
(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 nameprop- 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
(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
Returns the persistent class for type iTypeName as OrientVertexType instance.- Parameters:
iTypeName- Vertex class name
-
createVertexType
Creates a new Vertex persistent class.- Parameters:
iClassName- Vertex class name- Returns:
- OrientVertexType instance representing the persistent class
-
createVertexType
Creates a new Vertex persistent class.- Parameters:
iClassName- Vertex class nameclusters- 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
Creates a new Vertex persistent class specifying the super class.- Parameters:
iClassName- Vertex class nameiSuperClassName- Vertex class name to extend- Returns:
- OrientVertexType instance representing the persistent class
-
createVertexType
Creates a new Vertex persistent class specifying the super class.- Parameters:
iClassName- Vertex class nameiSuperClassName- Vertex class name to extendclusters- 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
Creates a new Vertex persistent class specifying the super class.- Parameters:
iClassName- Vertex class nameiSuperClass- OClass Vertex to extend- Returns:
- OrientVertexType instance representing the persistent class
-
createVertexType
Creates a new Vertex persistent class specifying the super class.- Parameters:
iClassName- Vertex class nameiSuperClass- OClass Vertex to extendclusters- 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
Drop a vertex class.- Parameters:
iTypeName- Vertex class name
-
getEdgeBaseType
OrientEdgeType getEdgeBaseType()Returns the E persistent class as OrientEdgeType instance. -
getEdgeType
Returns the persistent class for type iTypeName as OrientEdgeType instance.- Parameters:
iTypeName- Edge class name
-
createEdgeType
Creates a new Edge persistent class.- Parameters:
iClassName- Edge class name- Returns:
- OrientEdgeType instance representing the persistent class
-
createEdgeType
Creates a new Edge persistent class specifying the super class.- Parameters:
iClassName- Edge class nameiSuperClassName- Edge class name to extend- Returns:
- OrientEdgeType instance representing the persistent class
-
createEdgeType
Creates a new Edge persistent class specifying the super class.- Parameters:
iClassName- Edge class nameiSuperClass- OClass Edge to extend- Returns:
- OrientEdgeType instance representing the persistent class
-
createEdgeType
Creates a new Edge persistent class specifying the super class.- Parameters:
iClassName- Edge class nameiSuperClass- OClass Edge to extendclusters- 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
Drops an edge class.- Parameters:
iTypeName- Edge class name
-
detach
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
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:
queryin interfacecom.tinkerpop.blueprints.Graph- Returns:
- new GraphQuery instance
-
traverse
OTraverse traverse()Returns a OTraverse object to start traversing the graph. -
command
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
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
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
Declare an intent. -
getConflictStrategy
ORecordConflictStrategy getConflictStrategy() -
setConflictStrategy
-
setConflictStrategy
-