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, NORMAL_CACHE_TIMEOUT_MS, SHARDING_THRESHOLD| Constructor and Description |
|---|
GraknTitanGraph(com.thinkaurelius.titan.core.TitanGraph graph,
String name,
String engineUrl,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearGraph() |
void |
commitTransactionInternal() |
boolean |
isConceptModified(ai.grakn.graph.internal.ConceptImpl concept)
Uses
TitanVertex.isModified() |
boolean |
isSessionClosed() |
int |
numOpenTx() |
void |
openTransaction(GraknTxType txType)
Opens the thread bound transaction
|
void |
validVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex) |
abort, admin, buildConcept, close, closeSession, commit, commitNoLogs, convertToId, delete, duplicateResourcesExist, fixDuplicateResources, getConcept, getConcept, getEntityType, getKeyspace, getMetaConcept, getMetaEntityType, getMetaRelationType, getMetaResourceType, getMetaRoleType, getMetaRuleConstraint, getMetaRuleInference, getMetaRuleType, getOntologyConcept, getRelationType, getResourcesByValue, getResourceType, getRole, getRuleType, getTinkerPopGraph, getTinkerTraversal, getType, graql, implicitConceptsVisible, isBatchGraph, isClosed, isReadOnly, putEntityType, putEntityType, putRelationType, putRelationType, putResourceType, putResourceType, putRole, putRole, putRuleType, putRuleType, shard, showImplicitConcepts, updateConceptCountspublic GraknTitanGraph(com.thinkaurelius.titan.core.TitanGraph graph,
String name,
String engineUrl,
Properties properties)
public boolean isConceptModified(ai.grakn.graph.internal.ConceptImpl concept)
TitanVertex.isModified()isConceptModified in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>concept - A concept in the graphpublic void openTransaction(GraknTxType txType)
AbstractGraknGraphopenTransaction in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>public boolean isSessionClosed()
isSessionClosed in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>public int numOpenTx()
numOpenTx in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>protected void clearGraph()
clearGraph in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>public void commitTransactionInternal()
public void validVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
validVertex in class AbstractGraknGraph<com.thinkaurelius.titan.core.TitanGraph>Copyright © 2017 Grakn Labs Ltd. All rights reserved.