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.
NORMAL_CACHE_TIMEOUT_MS, SHARDING_THRESHOLD| Constructor and Description |
|---|
GraknTxJanus(org.janusgraph.core.JanusGraph graph,
ai.grakn.Keyspace keyspace,
String engineUrl,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
VertexElement |
addVertexElement(Schema.BaseType baseType,
ai.grakn.concept.ConceptId... conceptIds) |
protected void |
clearGraph() |
void |
commitTransactionInternal() |
boolean |
isConceptModified(ai.grakn.concept.Concept concept)
Uses
JanusGraphVertex.isModified() |
boolean |
isSessionClosed() |
int |
numOpenTx() |
void |
openTransaction(ai.grakn.GraknTxType txType) |
boolean |
validElement(org.apache.tinkerpop.gremlin.structure.Element element) |
abort, admin, buildConcept, buildConcept, checkMutationAllowed, checkSchemaMutationAllowed, close, closeSession, commit, 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, putAttributeType, putAttributeType, putEntityType, putEntityType, putRelationshipType, putRelationshipType, putRelationTypeImplicit, putRole, putRole, putRoleTypeImplicit, putRule, putRule, putShortcutEdge, shard, txCache, updateConceptCountspublic GraknTxJanus(org.janusgraph.core.JanusGraph graph,
ai.grakn.Keyspace keyspace,
String engineUrl,
Properties properties)
public boolean isConceptModified(ai.grakn.concept.Concept concept)
JanusGraphVertex.isModified()isConceptModified in class GraknTxAbstract<org.janusgraph.core.JanusGraph>concept - A concept in the graphpublic 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 validElement(org.apache.tinkerpop.gremlin.structure.Element element)
validElement in class GraknTxAbstract<org.janusgraph.core.JanusGraph>Copyright © 2017 Grakn Labs Ltd. All rights reserved.