public class GraknTitanGraph extends AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>
A Grakn Graph using TitanGraph as a vendor backend.
Wraps up a TitanGraph as a method of storing the Grakn Graph object Model.
With this vendor some issues to be aware of:
1. Whenever a transaction is closed if none remain open then the connection to the graph is closed permanently.
2. Clearing the graph explicitly closes the connection as well.
LOG| Constructor and Description |
|---|
GraknTitanGraph(com.thinkaurelius.titan.core.TitanGraph graph,
String name,
String engineUrl,
boolean batchLoading) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearGraph() |
void |
closeGraph(String reason) |
void |
commitTransaction() |
com.thinkaurelius.titan.core.TitanGraph |
getTinkerPopGraph() |
boolean |
isConceptModified(ai.grakn.graph.internal.ConceptImpl concept)
Uses
TitanVertex.isModified() |
boolean |
validVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex) |
admin, buildConcept, clear, close, 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, getTinkerTraversal, getType, graql, hasCommitted, implicitConceptsVisible, initialiseMetaConcepts, isBatchLoadingEnabled, isClosed, open, putEntityType, putEntityType, putRelationType, putRelationType, putResourceType, putResourceType, putResourceTypeUnique, putResourceTypeUnique, putRoleType, putRoleType, putRuleType, putRuleType, rollback, showImplicitConceptspublic boolean isConceptModified(ai.grakn.graph.internal.ConceptImpl concept)
TitanVertex.isModified()isConceptModified in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>concept - A concept in the graphprotected void clearGraph()
clearGraph in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>public void closeGraph(String reason)
closeGraph in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>public com.thinkaurelius.titan.core.TitanGraph getTinkerPopGraph()
getTinkerPopGraph in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>public void commitTransaction()
commitTransaction in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>public boolean validVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
validVertex in interface GraknAdminvalidVertex in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>vertex - The vertex to be checked against the underlaying graphCopyright © 2017 Grakn Labs Ltd. All rights reserved.