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 |
commitTx() |
com.thinkaurelius.titan.core.TitanGraph |
getTinkerPopGraph() |
admin, buildConcept, clear, close, closePermanent, commit, commit, finaliseClose, fixDuplicateCasting, fixDuplicateResources, getConcept, getConcept, getConceptByBaseIdentifier, getConceptLog, getConcepts, getElementFactory, 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, putRelationType, putResourceType, putResourceTypeUnique, putRoleType, putRuleType, rollback, showImplicitConceptsprotected 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 commitTx()
commitTx in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>Copyright © 2017 Grakn Labs Ltd. All rights reserved.