public interface OrientExtendedGraph extends com.tinkerpop.blueprints.IndexableGraph, com.tinkerpop.blueprints.MetaGraph<ODatabaseDocumentTx>, com.tinkerpop.blueprints.KeyIndexableGraph
Modifier and Type | Method and Description |
---|---|
OrientVertex |
addTemporaryVertex(String iClassName,
Object... prop)
(Blueprints Extension) Creates a temporary vertex setting the initial field values.
|
com.tinkerpop.blueprints.Vertex |
addVertex(Object id,
Object... prop)
(Blueprints Extension) Creates a new unconnected vertex in the Graph setting the initial field
values.
|
OrientElement |
attach(OrientElement iElement)
Attaches a previously detached Graph Element to the current Graph.
|
OCommandRequest |
command(OCommandRequest iCommand)
Executes commands against the graph.
|
long |
countEdges()
Counts the edges in graph.
|
long |
countEdges(String iClassName)
Counts the edges in graph of a particular class.
|
long |
countVertices()
Counts the vertices in graph.
|
long |
countVertices(String iClassName)
Counts the vertices in graph of a particular class.
|
OrientEdgeType |
createEdgeType(String iClassName)
Creates a new Edge persistent class.
|
OrientEdgeType |
createEdgeType(String iClassName,
OClass iSuperClass)
Creates a new Edge persistent class specifying the super class.
|
OrientEdgeType |
createEdgeType(String iClassName,
OClass iSuperClass,
int clusters)
Creates a new Edge persistent class specifying the super class.
|
OrientEdgeType |
createEdgeType(String iClassName,
String iSuperClassName)
Creates a new Edge persistent class specifying the super class.
|
OrientVertexType |
createVertexType(String iClassName)
Creates a new Vertex persistent class.
|
OrientVertexType |
createVertexType(String iClassName,
int clusters)
Creates a new Vertex persistent class.
|
OrientVertexType |
createVertexType(String iClassName,
OClass iSuperClass)
Creates a new Vertex persistent class specifying the super class.
|
OrientVertexType |
createVertexType(String iClassName,
OClass iSuperClass,
int clusters)
Creates a new Vertex persistent class specifying the super class.
|
OrientVertexType |
createVertexType(String iClassName,
String iSuperClassName)
Creates a new Vertex persistent class specifying the super class.
|
OrientVertexType |
createVertexType(String iClassName,
String iSuperClassName,
int clusters)
Creates a new Vertex persistent class specifying the super class.
|
void |
declareIntent(OIntent iIntent)
Declare an intent.
|
OrientElement |
detach(OrientElement iElement)
Detaches a Graph Element to be used offline.
|
void |
drop()
(Blueprints Extension) Drops the database
|
void |
dropEdgeType(String iTypeName)
Drops an edge class.
|
void |
dropVertexType(String iTypeName)
Drop a vertex class.
|
ORecordConflictStrategy |
getConflictStrategy() |
OrientEdgeType |
getEdgeBaseType()
Returns the E persistent class as OrientEdgeType instance.
|
OrientEdgeType |
getEdgeType(String iTypeName)
Returns the persistent class for type iTypeName as OrientEdgeType instance.
|
OrientVertexType |
getVertexBaseType()
Returns the V persistent class as OrientVertexType instance.
|
OrientVertexType |
getVertexType(String iTypeName)
Returns the persistent class for type iTypeName as OrientVertexType instance.
|
com.tinkerpop.blueprints.GraphQuery |
query()
Returns a GraphQuery object to execute queries against the Graph.
|
OrientExtendedGraph |
setConflictStrategy(ORecordConflictStrategy iResolver) |
OrientExtendedGraph |
setConflictStrategy(String iStrategyName) |
OTraverse |
traverse()
Returns a OTraverse object to start traversing the graph.
|
createIndex, dropIndex, getIndex, getIndices
void drop()
OrientVertex addTemporaryVertex(String iClassName, Object... prop)
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 pairscom.tinkerpop.blueprints.Vertex addVertex(Object id, Object... prop)
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 pairsOrientVertexType getVertexBaseType()
OrientVertexType getVertexType(String iTypeName)
iTypeName
- Vertex class nameOrientVertexType createVertexType(String iClassName)
iClassName
- Vertex class nameOrientVertexType createVertexType(String iClassName, int clusters)
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 machineOrientVertexType createVertexType(String iClassName, String iSuperClassName)
iClassName
- Vertex class nameiSuperClassName
- Vertex class name to extendOrientVertexType createVertexType(String iClassName, String iSuperClassName, int clusters)
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 machineOrientVertexType createVertexType(String iClassName, OClass iSuperClass)
iClassName
- Vertex class nameiSuperClass
- OClass Vertex to extendOrientVertexType createVertexType(String iClassName, OClass iSuperClass, int clusters)
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 machinevoid dropVertexType(String iTypeName)
iTypeName
- Vertex class nameOrientEdgeType getEdgeBaseType()
OrientEdgeType getEdgeType(String iTypeName)
iTypeName
- Edge class nameOrientEdgeType createEdgeType(String iClassName)
iClassName
- Edge class nameOrientEdgeType createEdgeType(String iClassName, String iSuperClassName)
iClassName
- Edge class nameiSuperClassName
- Edge class name to extendOrientEdgeType createEdgeType(String iClassName, OClass iSuperClass)
iClassName
- Edge class nameiSuperClass
- OClass Edge to extendOrientEdgeType createEdgeType(String iClassName, OClass iSuperClass, int clusters)
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 machinevoid dropEdgeType(String iTypeName)
iTypeName
- Edge class nameOrientElement detach(OrientElement iElement)
iElement
- Graph element to detachattach(OrientElement)
OrientElement attach(OrientElement iElement)
iElement
- Graph element to attachdetach(OrientElement)
com.tinkerpop.blueprints.GraphQuery query()
query
in interface com.tinkerpop.blueprints.Graph
OTraverse traverse()
OCommandRequest command(OCommandRequest iCommand)
iCommand
- Command request between SQL, GREMLIN and SCRIPT commandslong countVertices()
long countVertices(String iClassName)
long countEdges()
long countEdges(String iClassName)
void declareIntent(OIntent iIntent)
ORecordConflictStrategy getConflictStrategy()
OrientExtendedGraph setConflictStrategy(ORecordConflictStrategy iResolver)
OrientExtendedGraph setConflictStrategy(String iStrategyName)
Copyright © 2009–2020 OrientDB. All rights reserved.