public class OrientDBInternalFactory extends Object
A Grakn Graph on top of OrientGraph
This produces an grakn graph on top of OrientGraph.
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 |
| Constructor and Description |
|---|
OrientDBInternalFactory(String keyspace,
String engineUrl,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected M |
getGraph(M graknGraph,
GraknTxType txType) |
protected org.apache.tinkerpop.gremlin.orientdb.OrientGraph |
getGraphWithNewTransaction(org.apache.tinkerpop.gremlin.orientdb.OrientGraph 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 OrientDBInternalFactory(String keyspace, String engineUrl, Properties properties)
protected org.apache.tinkerpop.gremlin.orientdb.OrientGraph getGraphWithNewTransaction(org.apache.tinkerpop.gremlin.orientdb.OrientGraph 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.