public class GraknSessionImpl extends Object implements GraknSession
Builds a Grakn Graph factory
This class facilitates the construction of Grakn Graphs 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.
DEFAULT_URI| Constructor and Description |
|---|
GraknSessionImpl(String keyspace,
String location) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
GraknComputer |
getGraphComputer() |
GraknGraph |
open(GraknTxType transactionType) |
public GraknGraph open(GraknTxType transactionType)
open in interface GraknSessionpublic GraknComputer getGraphComputer()
getGraphComputer in interface GraknSessionpublic void close()
throws GraphOperationException
close in interface GraknSessionclose in interface AutoCloseableGraphOperationExceptionCopyright © 2017 Grakn Labs Ltd. All rights reserved.