public class EngineGraknTxFactory extends Object
Engine's internal GraknTx Factory
This internal factory is used to produce GraknTxs.
It is also worth noting that both this class and Grakn.session(String, String) us the same
FactoryBuilder. This means that graphs produced from either factory pointing to the same keyspace
are actually the same graphs.
| Modifier and Type | Method and Description |
|---|---|
GraknConfig |
config() |
static EngineGraknTxFactory |
create(LockProvider lockProvider,
GraknConfig engineConfig) |
static EngineGraknTxFactory |
createAndLoadSystemSchema(LockProvider lockProvider,
GraknConfig engineConfig) |
void |
initialiseNewKeyspace(ai.grakn.Keyspace keyspace)
Initialise a new
Keyspace by opening and closing a transaction on it. |
void |
refreshConnections() |
SystemKeyspace |
systemKeyspace() |
ai.grakn.GraknTx |
tx(ai.grakn.Keyspace keyspace,
ai.grakn.GraknTxType type) |
ai.grakn.GraknTx |
tx(String keyspace,
ai.grakn.GraknTxType type) |
public static EngineGraknTxFactory createAndLoadSystemSchema(LockProvider lockProvider, GraknConfig engineConfig)
public static EngineGraknTxFactory create(LockProvider lockProvider, GraknConfig engineConfig)
public void refreshConnections()
public ai.grakn.GraknTx tx(String keyspace, ai.grakn.GraknTxType type)
public ai.grakn.GraknTx tx(ai.grakn.Keyspace keyspace,
ai.grakn.GraknTxType type)
public void initialiseNewKeyspace(ai.grakn.Keyspace keyspace)
Keyspace by opening and closing a transaction on it.keyspace - the new Keyspace we want to createpublic GraknConfig config()
public SystemKeyspace systemKeyspace()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.