public class GraknSessionImpl extends Object implements GraknSession
Builds a TxFactory
This class facilitates the construction of GraknTx by determining which factory should be built.
It does this by either defaulting to an in memory tx GraknTxTinker or by
retrieving the factory definition from engine.
The deployment of engine decides on the backend and this class will handle producing the correct graphs.
DEFAULT_URI| Constructor and Description |
|---|
GraknSessionImpl(Keyspace keyspace,
String engineUri) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
GraknComputer |
getGraphComputer() |
GraknTx |
open(GraknTxType transactionType) |
public GraknTx open(GraknTxType transactionType)
open in interface GraknSessionpublic GraknComputer getGraphComputer()
getGraphComputer in interface GraknSessionpublic void close()
throws GraknTxOperationException
close in interface GraknSessionclose in interface AutoCloseableGraknTxOperationExceptionCopyright © 2017 Grakn Labs Ltd. All rights reserved.