public class TitanHadoopInternalFactory extends Object
A Grakn Graph on top of HadoopGraph
This produces a graph on top of HadoopGraph.
The base construction process defined by AbstractInternalFactory ensures the graph factories are singletons.
With this vendor some exceptions are in places:
1. The Grakn API cannnot work on HadoopGraph this is due to not being able to directly write to a
HadoopGraph.
2. This factory primarily exists as a means of producing a
GraphComputer on of HadoopGraph
| 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) |
protected org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph |
getGraphWithNewTransaction(org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph 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
protected org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph getGraphWithNewTransaction(org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph 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.