public class GraknTxTinker extends GraknTxAbstract<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>
A GraknTx using TinkerGraph as a vendor backend.
Wraps up a TinkerGraph as a method of storing the GraknTx 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.
NORMAL_CACHE_TIMEOUT_MS, SHARDING_THRESHOLD| Constructor and Description |
|---|
GraknTxTinker(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph tinkerGraph,
Keyspace keyspace,
String engineUrl,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
commit() |
boolean |
isConceptModified(Concept concept) |
boolean |
isSessionClosed() |
int |
numOpenTx() |
addVertexElement, admin, buildConcept, buildConcept, checkMutationAllowed, checkSchemaMutationAllowed, clearGraph, close, closeSession, commitLog, commitNoLogs, convertToId, delete, duplicateResourcesExist, factory, fixDuplicateResources, getAttributesByValue, getAttributeType, getConcept, getConcept, getEngineUrl, getEntityType, getKeyspace, getMetaConcept, getMetaEntityType, getMetaRelationType, getMetaResourceType, getMetaRole, getMetaRule, getRelationshipType, getRole, getRule, getSchemaConcept, getSchemaConcept, getTinkerPopGraph, getTinkerTraversal, getType, graql, isBatchTx, isClosed, isReadOnly, openTransaction, putAttributeType, putAttributeType, putEntityType, putEntityType, putRelationshipType, putRelationshipType, putRelationTypeImplicit, putRole, putRole, putRoleTypeImplicit, putRule, putRule, putShortcutEdge, shard, txCache, updateConceptCounts, validElementpublic GraknTxTinker(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph tinkerGraph,
Keyspace keyspace,
String engineUrl,
Properties properties)
public boolean isConceptModified(Concept concept)
isConceptModified in class GraknTxAbstract<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>concept - A concept in the graphTinkerVertex has been modified or not.public int numOpenTx()
numOpenTx in class GraknTxAbstract<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>public boolean isSessionClosed()
isSessionClosed in class GraknTxAbstract<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>public void commit()
commit in interface GraknTxcommit in class GraknTxAbstract<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>public void abort()
abort in interface GraknTxabort in class GraknTxAbstract<org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph>Copyright © 2017 Grakn Labs Ltd. All rights reserved.