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, NORMAL_CACHE_TIMEOUT_MS, SHARDING_THRESHOLD| Constructor and Description |
|---|
GraknTinkerGraph(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph tinkerGraph,
String name,
String engineUrl,
Properties properties) |
| 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.
|
boolean |
isConceptModified(ai.grakn.graph.internal.ConceptImpl concept) |
boolean |
isSessionClosed() |
int |
numOpenTx() |
admin, buildConcept, clearGraph, close, closeSession, 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, openTransaction, putEntityType, putEntityType, putRelationType, putRelationType, putResourceType, putResourceType, putRole, putRole, putRuleType, putRuleType, shard, showImplicitConcepts, updateConceptCounts, validVertexpublic GraknTinkerGraph(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph tinkerGraph,
String name,
String engineUrl,
Properties properties)
public 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 isSessionClosed()
isSessionClosed 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>Copyright © 2017 Grakn Labs Ltd. All rights reserved.