Class OScriptGraphWrapper
java.lang.Object
com.orientechnologies.orient.graph.script.OScriptGraphWrapper
- All Implemented Interfaces:
com.tinkerpop.blueprints.Graph,com.tinkerpop.blueprints.TransactionalGraph
public class OScriptGraphWrapper
extends Object
implements com.tinkerpop.blueprints.TransactionalGraph
Blueprints Graph wrapper class to use from scripts.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tinkerpop.blueprints.TransactionalGraph
com.tinkerpop.blueprints.TransactionalGraph.Conclusion -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEdge(Object id, com.tinkerpop.blueprints.Vertex outVertex, com.tinkerpop.blueprints.Vertex inVertex, String label) addTemporaryVertex(String iClassName, Object[] prop) command(OCommandRequest iCommand) voidcommit()longlongcountEdges(String iClassName) longlongcountVertices(String iClassName) createEdgeType(String iClassName) createEdgeType(String iClassName, OClass iSuperClass) createEdgeType(String iClassName, String iSuperClassName) <T extends com.tinkerpop.blueprints.Element>
com.tinkerpop.blueprints.Index<T>createIndex(String indexName, Class<T> indexClass, com.tinkerpop.blueprints.Parameter... indexParameters) <T extends com.tinkerpop.blueprints.Element>
voidcreateKeyIndex(String key, Class<T> elementClass, com.tinkerpop.blueprints.Parameter... indexParameters) createVertexType(String iClassName) createVertexType(String iClassName, OClass iSuperClass) createVertexType(String iClassName, String iSuperClassName) voiddrop()final voiddropEdgeType(String iTypeName) void<T extends com.tinkerpop.blueprints.Element>
voiddropKeyIndex(String key, Class<T> elementClass) final voiddropVertexType(String iTypeName) booleanIterable<com.tinkerpop.blueprints.Edge>getEdges()Iterable<com.tinkerpop.blueprints.Edge>getEdges(boolean iPolymorphic) Iterable<com.tinkerpop.blueprints.Edge>Iterable<com.tinkerpop.blueprints.Edge>getEdgesOfClass(String iClassName) Iterable<com.tinkerpop.blueprints.Edge>getEdgesOfClass(String iClassName, boolean iPolymorphic) final OClassgetEdgeType(String iTypeName) getElement(Object id) com.tinkerpop.blueprints.Features<T extends com.tinkerpop.blueprints.Element>
com.tinkerpop.blueprints.Index<T>getIndexedKeys(Class<T> elementClass) getIndexedKeys(Class<T> elementClass, boolean includeClassNames) Iterable<com.tinkerpop.blueprints.Index<? extends com.tinkerpop.blueprints.Element>>final OClassgetVertexType(String iTypeName) Iterable<com.tinkerpop.blueprints.Vertex>Iterable<com.tinkerpop.blueprints.Vertex>getVertices(boolean iPolymorphic) Iterable<com.tinkerpop.blueprints.Vertex>getVertices(String iKey, Object iValue) Iterable<com.tinkerpop.blueprints.Vertex>getVerticesOfClass(String iClassName) Iterable<com.tinkerpop.blueprints.Vertex>getVerticesOfClass(String iClassName, boolean iPolymorphic) inthashCode()booleanbooleanisClosed()booleanbooleanbooleanbooleanbooleanbooleanbooleancom.tinkerpop.blueprints.GraphQueryquery()voidremoveEdge(com.tinkerpop.blueprints.Edge edge) voidremoveVertex(com.tinkerpop.blueprints.Vertex vertex) reuse(ODatabaseDocumentInternal iDatabase) voidrollback()voidsetAutoStartTx(boolean autoStartTx) voidsetKeepInMemoryReferences(boolean useReferences) voidsetSaveOriginalIds(boolean saveIds) voidsetStandardElementConstraints(boolean allowsPropertyValueNull) voidsetUseClassForEdgeLabel(boolean useCustomClassesForEdges) voidsetUseClassForVertexLabel(boolean useCustomClassesForVertex) voidsetUseLightweightEdges(boolean useDynamicEdges) voidsetUseVertexFieldsForEdgeLabels(boolean useVertexFieldsForEdgeLabels) voidshutdown()voidstopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion) toString()traverse()
-
Field Details
-
graph
-
-
Constructor Details
-
OScriptGraphWrapper
-
-
Method Details
-
command
-
command
-
getFeatures
public com.tinkerpop.blueprints.Features getFeatures()- Specified by:
getFeaturesin interfacecom.tinkerpop.blueprints.Graph
-
hashCode
public int hashCode() -
commit
public void commit()- Specified by:
commitin interfacecom.tinkerpop.blueprints.TransactionalGraph
-
rollback
public void rollback()- Specified by:
rollbackin interfacecom.tinkerpop.blueprints.TransactionalGraph
-
isAutoStartTx
public boolean isAutoStartTx() -
setAutoStartTx
public void setAutoStartTx(boolean autoStartTx) -
stopTransaction
public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion) - Specified by:
stopTransactionin interfacecom.tinkerpop.blueprints.TransactionalGraph
-
equals
-
drop
public void drop() -
createIndex
-
getIndex
-
getIndices
public Iterable<com.tinkerpop.blueprints.Index<? extends com.tinkerpop.blueprints.Element>> getIndices() -
dropIndex
-
addVertex
- Specified by:
addVertexin interfacecom.tinkerpop.blueprints.Graph
-
addVertex
-
addTemporaryVertex
-
addEdge
public OrientEdge addEdge(Object id, com.tinkerpop.blueprints.Vertex outVertex, com.tinkerpop.blueprints.Vertex inVertex, String label) - Specified by:
addEdgein interfacecom.tinkerpop.blueprints.Graph
-
getVertex
- Specified by:
getVertexin interfacecom.tinkerpop.blueprints.Graph
-
removeVertex
public void removeVertex(com.tinkerpop.blueprints.Vertex vertex) - Specified by:
removeVertexin interfacecom.tinkerpop.blueprints.Graph
-
getVertices
- Specified by:
getVerticesin interfacecom.tinkerpop.blueprints.Graph
-
getVertices
-
getVerticesOfClass
-
getVerticesOfClass
-
getVertices
- Specified by:
getVerticesin interfacecom.tinkerpop.blueprints.Graph
-
getEdges
- Specified by:
getEdgesin interfacecom.tinkerpop.blueprints.Graph
-
getEdges
-
getEdgesOfClass
-
getEdgesOfClass
-
getEdges
- Specified by:
getEdgesin interfacecom.tinkerpop.blueprints.Graph
-
getEdge
- Specified by:
getEdgein interfacecom.tinkerpop.blueprints.Graph
-
removeEdge
public void removeEdge(com.tinkerpop.blueprints.Edge edge) - Specified by:
removeEdgein interfacecom.tinkerpop.blueprints.Graph
-
reuse
-
isClosed
public boolean isClosed() -
shutdown
public void shutdown()- Specified by:
shutdownin interfacecom.tinkerpop.blueprints.Graph
-
toString
-
getRawGraph
-
getVertexBaseType
-
getVertexType
-
createVertexType
-
createVertexType
-
createVertexType
-
dropVertexType
-
getEdgeBaseType
-
getEdgeType
-
createEdgeType
-
createEdgeType
-
createEdgeType
-
dropEdgeType
-
getElement
-
dropKeyIndex
-
createKeyIndex
-
getIndexedKeys
-
getIndexedKeys
-
query
public com.tinkerpop.blueprints.GraphQuery query()- Specified by:
queryin interfacecom.tinkerpop.blueprints.Graph
-
traverse
-
command
-
isUseLightweightEdges
public boolean isUseLightweightEdges() -
setUseLightweightEdges
public void setUseLightweightEdges(boolean useDynamicEdges) -
isSaveOriginalIds
public boolean isSaveOriginalIds() -
setSaveOriginalIds
public void setSaveOriginalIds(boolean saveIds) -
countVertices
public long countVertices() -
countVertices
-
countEdges
public long countEdges() -
countEdges
-
isKeepInMemoryReferences
public boolean isKeepInMemoryReferences() -
setKeepInMemoryReferences
public void setKeepInMemoryReferences(boolean useReferences) -
isUseClassForEdgeLabel
public boolean isUseClassForEdgeLabel() -
setUseClassForEdgeLabel
public void setUseClassForEdgeLabel(boolean useCustomClassesForEdges) -
isUseClassForVertexLabel
public boolean isUseClassForVertexLabel() -
setUseClassForVertexLabel
public void setUseClassForVertexLabel(boolean useCustomClassesForVertex) -
isUseVertexFieldsForEdgeLabels
public boolean isUseVertexFieldsForEdgeLabels() -
setUseVertexFieldsForEdgeLabels
public void setUseVertexFieldsForEdgeLabels(boolean useVertexFieldsForEdgeLabels) -
isStandardElementConstraints
public boolean isStandardElementConstraints() -
setStandardElementConstraints
public void setStandardElementConstraints(boolean allowsPropertyValueNull) -
getThreadMode
-
setThreadMode
-