public class GraknTinkerGraph extends AbstractGraknGraph<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>
A Grakn Graph using TinkerGraph as a vendor backend.
Wraps up a TinkerGraph as a method of storing the Grakn Graph object Model.
With this vendor some exceptions are in place:
1. Transactions do not exists and all threads work on the same graph at the same time.
LOG| Constructor and Description |
|---|
GraknTinkerGraph(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph tinkerGraph,
String name,
String engineUrl,
boolean batchLoading) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Reverts any changes done to the graph and closes the transaction.
|
void |
commit()
Commits any changes to the graph and closes the transaction.
|
<T extends Concept> |
getConceptRawId(Object id)
Looks up concept by using id against vertex ids.
|
boolean |
isConceptModified(ai.grakn.graph.internal.ConceptImpl concept) |
boolean |
isConnectionClosed() |
int |
numOpenTx() |
admin, buildConcept, clear, clear, clearGraph, close, commit, commit, commitNoLogs, fixDuplicateCastings, fixDuplicateResources, getConcept, getConcept, getEntityType, getKeyspace, getMetaConcept, getMetaEntityType, getMetaRelationType, getMetaResourceType, getMetaRoleType, getMetaRuleConstraint, getMetaRuleInference, getMetaRuleType, getRelationType, getResourcesByValue, getResourceType, getRoleType, getRuleType, getTinkerPopGraph, getTinkerTraversal, getType, graql, implicitConceptsVisible, isBatchLoadingEnabled, isClosed, isReadOnly, openTransaction, putEntityType, putEntityType, putRelationType, putRelationType, putResourceType, putResourceType, putRoleType, putRoleType, putRuleType, putRuleType, showImplicitConcepts, updateTypeCounts, validVertexpublic boolean isConceptModified(ai.grakn.graph.internal.ConceptImpl concept)
isConceptModified in class AbstractGraknGraph<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>concept - A concept in the graphTinkerVertex has been modified or not.public int numOpenTx()
numOpenTx in class AbstractGraknGraph<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>public boolean isConnectionClosed()
isConnectionClosed in class AbstractGraknGraph<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>public void commit()
GraknGraphGraknSession to
get a new open transaction.commit in interface GraknGraphcommit in class AbstractGraknGraph<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>public void abort()
GraknGraphGraknSession to
get a new open transaction.abort in interface GraknGraphabort in class AbstractGraknGraph<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>public <T extends Concept> T getConceptRawId(Object id)
AbstractGraknGraphgetConceptRawId in class AbstractGraknGraph<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>id - The id of the concept which should match the vertex idCopyright © 2017 Grakn Labs Ltd. All rights reserved.