public class GraknGraphFactoryImpl extends Object implements GraknGraphFactory
Builds a Grakn Graph factory
This class facilitates the construction of Grakn Grahs by determining which factory should be built.
It does this by either defaulting to an in memory graph GraknTinkerGraph or by
retrieving the factory definition from engine.
The deployer of engine decides on the backend and this class will handle producing the correct graphs.
| Constructor and Description |
|---|
GraknGraphFactoryImpl(String keyspace,
String location) |
| Modifier and Type | Method and Description |
|---|---|
GraknGraph |
getGraph()
Get a new or existing graph.
|
GraknGraph |
getGraphBatchLoading()
Get a new or existing graph with batch loading enabled.
|
GraknComputer |
getGraphComputer()
Get a new or existing GraknComputer.
|
public GraknGraph getGraph()
GraknGraphFactorygetGraph in interface GraknGraphFactoryGraknGraphpublic GraknGraph getGraphBatchLoading()
GraknGraphFactorygetGraphBatchLoading in interface GraknGraphFactoryGraknGraphpublic GraknComputer getGraphComputer()
GraknGraphFactorygetGraphComputer in interface GraknGraphFactoryGraknComputerCopyright © 2017 Grakn Labs Ltd. All rights reserved.