public class TxFactoryTinker extends Object
A GraknTx on top of TinkerGraph
This produces an in memory grakn graph on top of TinkerGraph.
The base construction process defined by TxFactoryAbstract ensures the graph factories are singletons.
| Modifier and Type | Field and Description |
|---|---|
protected String |
engineUrl |
protected Keyspace |
keyspace |
protected Properties |
properties |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph |
getGraphWithNewTransaction(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph graph,
boolean batchLoading) |
G |
getTinkerPopGraph(boolean batchLoading) |
protected org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph |
getTinkerPopGraph(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph graph,
boolean batchLoading) |
M |
open(GraknTxType txType) |
protected final Keyspace keyspace
protected final String engineUrl
protected final Properties properties
protected org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph getTinkerPopGraph(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph graph,
boolean batchLoading)
protected org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph getGraphWithNewTransaction(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph graph,
boolean batchLoading)
public M open(GraknTxType txType)
public G getTinkerPopGraph(boolean batchLoading)
getTinkerPopGraph in interface TxFactory<G extends org.apache.tinkerpop.gremlin.structure.Graph>batchLoading - A flag which indicates if the graph has batch loading enabled or not.Copyright © 2017 Grakn Labs Ltd. All rights reserved.