public class GraknTxJanus extends GraknTxAbstract<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(ai.grakn.GraknSession 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 |
isSessionClosed() |
boolean |
isValidElement(org.apache.tinkerpop.gremlin.structure.Element element) |
int |
numOpenTx() |
void |
openTransaction(ai.grakn.GraknTxType txType) |
abort, admin, buildConcept, buildConcept, checkMutationAllowed, checkSchemaMutationAllowed, close, closeSession, commit, commitSubmitNoLogs, convertToId, delete, duplicateResourcesExist, factory, fixDuplicateResources, getAttributesByValue, getAttributeType, getConcept, getConcept, getEntityType, getMetaAttributeType, getMetaConcept, getMetaEntityType, getMetaRelationType, getMetaRole, getMetaRule, getRelationshipType, getRole, getRule, getSchemaConcept, getSchemaConcept, getShardCount, getTinkerPopGraph, getTinkerTraversal, getType, graql, isBatchTx, isClosed, keyspace, putAttributeType, putAttributeType, putEntityType, putEntityType, putRelationshipType, putRelationshipType, putRelationTypeImplicit, putRole, putRole, putRoleTypeImplicit, putRule, putRule, session, shard, shardingThreshold, sups, txCache, txTypepublic GraknTxJanus(ai.grakn.GraknSession session,
org.janusgraph.core.JanusGraph graph)
public void openTransaction(ai.grakn.GraknTxType txType)
openTransaction in class GraknTxAbstract<org.janusgraph.core.JanusGraph>public boolean isSessionClosed()
isSessionClosed in class GraknTxAbstract<org.janusgraph.core.JanusGraph>public int numOpenTx()
numOpenTx in class GraknTxAbstract<org.janusgraph.core.JanusGraph>protected void clearGraph()
clearGraph in class GraknTxAbstract<org.janusgraph.core.JanusGraph>public void commitTransactionInternal()
commitTransactionInternal in class GraknTxAbstract<org.janusgraph.core.JanusGraph>public VertexElement addVertexElement(Schema.BaseType baseType, ai.grakn.concept.ConceptId... conceptIds)
addVertexElement in class GraknTxAbstract<org.janusgraph.core.JanusGraph>public boolean isValidElement(org.apache.tinkerpop.gremlin.structure.Element element)
isValidElement in class GraknTxAbstract<org.janusgraph.core.JanusGraph>Copyright © 2018 Grakn Labs Ltd. All rights reserved.