public final class TitanInternalFactory extends Object
A Grakn Graph on top of TitanGraph
This produces a grakn graph on top of TitanGraph.
The base construction process defined by AbstractInternalFactory ensures the graph factories are singletons.
| Modifier and Type | Field and Description |
|---|---|
protected String |
engineUrl |
protected M |
graknGraph |
protected G |
graph |
protected String |
keyspace |
protected Properties |
properties |
| Modifier and Type | Method and Description |
|---|---|
protected M |
getGraph(M graknGraph,
GraknTxType txType) |
com.thinkaurelius.titan.core.TitanGraph |
getGraphWithNewTransaction(com.thinkaurelius.titan.core.TitanGraph graph,
boolean batchloading) |
G |
getTinkerPopGraph(boolean batchLoading) |
protected G |
getTinkerPopGraph(G graph,
boolean batchLoading) |
M |
open(GraknTxType txType) |
protected final String keyspace
protected final String engineUrl
protected final Properties properties
protected M extends AbstractGraknGraph<G> graknGraph
protected G extends org.apache.tinkerpop.gremlin.structure.Graph graph
public com.thinkaurelius.titan.core.TitanGraph getGraphWithNewTransaction(com.thinkaurelius.titan.core.TitanGraph graph,
boolean batchloading)
public M open(GraknTxType txType)
open in interface InternalFactory<G extends org.apache.tinkerpop.gremlin.structure.Graph>txType - The type of transaction to open on the graphprotected M getGraph(M graknGraph,
GraknTxType txType)
public G getTinkerPopGraph(boolean batchLoading)
getTinkerPopGraph in interface InternalFactory<G extends org.apache.tinkerpop.gremlin.structure.Graph>batchLoading - A flag which indicates if the graph has batch loading enabled or not.protected G getTinkerPopGraph(G graph,
boolean batchLoading)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.