Package org.gridgain.internal.dcr.table
Class TableManager
java.lang.Object
org.gridgain.internal.dcr.table.TableManager
DCR table manager.
-
Constructor Summary
ConstructorsConstructorDescriptionTableManager(String nodeName, String tableName, org.apache.ignite.client.IgniteClient client, org.apache.ignite.table.IgniteTables tables) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.ignite.client.IgniteClientclient()org.apache.ignite.internal.schema.SchemaRegistryReturns registry of local schema.org.apache.ignite.table.KeyValueView<org.apache.ignite.table.Tuple,org.apache.ignite.table.Tuple> Returns source table asKeyValueView.longorg.apache.ignite.table.KeyValueView<org.apache.ignite.table.Tuple,org.apache.ignite.table.Tuple> Returns target table asKeyValueView.org.apache.ignite.tx.TransactionstartLocalTransaction(boolean readOnly) Starts transaction on local cluster.org.apache.ignite.tx.TransactionstartRemoteTransaction(org.apache.ignite.tx.TransactionOptions transactionOptions) Starts transaction on remote cluster.
-
Constructor Details
-
Method Details
-
localTable
public org.apache.ignite.table.KeyValueView<org.apache.ignite.table.Tuple,org.apache.ignite.table.Tuple> localTable()Returns source table asKeyValueView.- Returns:
- Source table.
-
localSchema
public org.apache.ignite.internal.schema.SchemaRegistry localSchema()Returns registry of local schema.- Returns:
- Local schema registry.
-
remoteTable
public org.apache.ignite.table.KeyValueView<org.apache.ignite.table.Tuple,org.apache.ignite.table.Tuple> remoteTable()Returns target table asKeyValueView.- Returns:
- Target table.
-
startLocalTransaction
public org.apache.ignite.tx.Transaction startLocalTransaction(boolean readOnly) Starts transaction on local cluster.- Parameters:
readOnly- Read/Write transaction mode.- Returns:
- Started transaction instance.
-
startRemoteTransaction
public org.apache.ignite.tx.Transaction startRemoteTransaction(org.apache.ignite.tx.TransactionOptions transactionOptions) Starts transaction on remote cluster.- Parameters:
transactionOptions- Transaction options.- Returns:
- Started transaction instance.
-
tableName
-
client
public org.apache.ignite.client.IgniteClient client() -
observableTimestamp
public long observableTimestamp()
-