public class GraknTxJanus extends EmbeddedGraknTx<org.janusgraph.core.JanusGraph>
A GraknTx using JanusGraph as a vendor backend.
Wraps up a JanusGraph as a method of storing the GraknTx 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.
| Constructor and Description |
|---|
GraknTxJanus(EmbeddedGraknSession session,
org.janusgraph.core.JanusGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
VertexElement |
addVertexElement(Schema.BaseType baseType,
ai.grakn.concept.ConceptId... conceptIds) |
protected void |
clearGraph() |
void |
commitTransactionInternal() |
boolean |
isTinkerPopGraphClosed() |
boolean |
isValidElement(org.apache.tinkerpop.gremlin.structure.Element element) |
int |
numOpenTx() |
void |
openTransaction(ai.grakn.GraknTxType txType) |
admin, buildConcept, buildConcept, checkMutationAllowed, checkSchemaMutationAllowed, close, closeSession, commit, commitSubmitNoLogs, convertToId, delete, duplicateResourcesExist, factory, fixDuplicateResources, getAttributesByValue, getAttributeType, getConcept, getConcept, getEntityType, getRelationshipType, getRole, getRule, getSchemaConcept, getSchemaConcept, getShardCount, getTinkerPopGraph, getTinkerTraversal, getType, graql, isBatchTx, isClosed, putAttributeType, putEntityType, putRelationshipType, putRelationTypeImplicit, putRole, putRoleTypeImplicit, putRule, queryRunner, session, shard, shardingThreshold, sups, txCache, txTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic GraknTxJanus(EmbeddedGraknSession session, org.janusgraph.core.JanusGraph graph)
public void openTransaction(ai.grakn.GraknTxType txType)
openTransaction in class EmbeddedGraknTx<org.janusgraph.core.JanusGraph>public boolean isTinkerPopGraphClosed()
isTinkerPopGraphClosed in class EmbeddedGraknTx<org.janusgraph.core.JanusGraph>public int numOpenTx()
numOpenTx in class EmbeddedGraknTx<org.janusgraph.core.JanusGraph>protected void clearGraph()
clearGraph in class EmbeddedGraknTx<org.janusgraph.core.JanusGraph>public void commitTransactionInternal()
commitTransactionInternal in class EmbeddedGraknTx<org.janusgraph.core.JanusGraph>public VertexElement addVertexElement(Schema.BaseType baseType, ai.grakn.concept.ConceptId... conceptIds)
addVertexElement in class EmbeddedGraknTx<org.janusgraph.core.JanusGraph>public boolean isValidElement(org.apache.tinkerpop.gremlin.structure.Element element)
isValidElement in class EmbeddedGraknTx<org.janusgraph.core.JanusGraph>Copyright © 2018 Grakn Labs Ltd. All rights reserved.