public class GraknOrientDBGraph extends AbstractGraknGraph<org.apache.tinkerpop.gremlin.orientdb.OrientGraph>
A Grakn Graph using OrientGraph as a vendor backend.
Wraps up a OrientGraph as a method of storing the Grakn Graph object Model.
With this vendor some issues to be aware of:
1. GraknGraph.rollback() is not supported at this stage.
2. AbstractGraknGraph.isConceptModified(ConceptImpl) always returns true due to methods not available
yet on orient's side.
3. Indexing is done across labels as opposed to global indices
LOG| Constructor and Description |
|---|
GraknOrientDBGraph(org.apache.tinkerpop.gremlin.orientdb.OrientGraph graph,
String name,
String engineUrl,
boolean batchLoading) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commitTransaction() |
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<org.apache.tinkerpop.gremlin.structure.Vertex,org.apache.tinkerpop.gremlin.structure.Vertex> |
getTinkerTraversal()
Utility function to get a read-only Tinkerpop traversal.
|
boolean |
isConceptModified(ai.grakn.graph.internal.ConceptImpl concept) |
void |
rollback()
Resets the current transaction without committing.
|
admin, buildConcept, clear, clearGraph, close, closeGraph, closePermanent, commit, commit, commit, commitNoLogs, finaliseClose, fixDuplicateCastings, fixDuplicateResources, getConcept, getConcept, getConceptByBaseIdentifier, getEntityType, getKeyspace, getMetaConcept, getMetaEntityType, getMetaRelationType, getMetaResourceType, getMetaRoleType, getMetaRuleConstraint, getMetaRuleInference, getMetaRuleType, getRelation, getRelationType, getResourcesByValue, getResourceType, getRoleType, getRuleType, getTinkerPopGraph, getType, graql, hasCommitted, implicitConceptsVisible, initialiseMetaConcepts, isBatchLoadingEnabled, isClosed, open, putEntityType, putEntityType, putRelationType, putRelationType, putResourceType, putResourceType, putResourceTypeUnique, putResourceTypeUnique, putRoleType, putRoleType, putRuleType, putRuleType, showImplicitConcepts, validVertexpublic boolean isConceptModified(ai.grakn.graph.internal.ConceptImpl concept)
isConceptModified in class AbstractGraknGraph<org.apache.tinkerpop.gremlin.orientdb.OrientGraph>concept - A concept in the graphOrientElement which helps us to determine this.protected void commitTransaction()
commitTransaction in class AbstractGraknGraph<org.apache.tinkerpop.gremlin.orientdb.OrientGraph>public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<org.apache.tinkerpop.gremlin.structure.Vertex,org.apache.tinkerpop.gremlin.structure.Vertex> getTinkerTraversal()
GraknAdmingetTinkerTraversal in interface GraknAdmingetTinkerTraversal in class AbstractGraknGraph<org.apache.tinkerpop.gremlin.orientdb.OrientGraph>public void rollback()
GraknGraphrollback in interface GraknGraphrollback in class AbstractGraknGraph<org.apache.tinkerpop.gremlin.orientdb.OrientGraph>Copyright © 2017 Grakn Labs Ltd. All rights reserved.