public interface DistributedTransactionAdmin extends Admin, AuthAdmin, java.lang.AutoCloseable
AuthAdmin.Privilege, AuthAdmin.User, AuthAdmin.UserOption| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes connections to the storage.
|
boolean |
coordinatorTablesExist()
Returns true if all the coordinator tables exist.
|
default void |
createCoordinatorTables()
Creates coordinator namespace and tables.
|
default void |
createCoordinatorTables(boolean ifNotExist)
Creates coordinator namespace and tables.
|
default void |
createCoordinatorTables(boolean ifNotExist,
java.util.Map<java.lang.String,java.lang.String> options)
Creates coordinator namespace and tables.
|
void |
createCoordinatorTables(java.util.Map<java.lang.String,java.lang.String> options)
Creates coordinator namespace and tables.
|
void |
dropCoordinatorTables()
Drops coordinator namespace and tables.
|
default void |
dropCoordinatorTables(boolean ifExist)
Drops coordinator namespace and tables.
|
void |
repairCoordinatorTables(java.util.Map<java.lang.String,java.lang.String> options)
Repairs coordinator tables which may be in an unknown state.
|
void |
truncateCoordinatorTables()
Truncates coordinator tables.
|
addNewColumnToTable, addNewColumnToTable, createIndex, createIndex, createIndex, createIndex, createNamespace, createNamespace, createNamespace, createNamespace, createTable, createTable, createTable, createTable, dropIndex, dropIndex, dropNamespace, dropNamespace, dropTable, dropTable, getNamespaceNames, getNamespaceTableNames, getTableMetadata, importTable, indexExists, namespaceExists, repairTable, tableExists, truncateTablealterUser, createUser, dropUser, getCurrentUser, getPrivileges, getPrivileges, getUser, getUsers, grant, grant, revoke, revokevoid createCoordinatorTables(java.util.Map<java.lang.String,java.lang.String> options)
throws ExecutionException
options - options to create namespace and tablesjava.lang.IllegalArgumentException - if the coordinator namespace already exists or the coordinator
tables already existExecutionException - if the operation failsdefault void createCoordinatorTables(boolean ifNotExist,
java.util.Map<java.lang.String,java.lang.String> options)
throws ExecutionException
ifNotExist - if set to true, the coordinator namespace and tables will be created only if
they do not exist. If set to false, it will throw an exception if they already existoptions - options to create namespace and tablesjava.lang.IllegalArgumentException - if the coordinator namespace already exists or the coordinator
tables already exist if ifNotExist is set to falseExecutionException - if the operation failsdefault void createCoordinatorTables(boolean ifNotExist)
throws ExecutionException
ifNotExist - if set to true, the coordinator namespace and tables will be created only if
they do not exist. If set to false, it will throw an exception if they already existjava.lang.IllegalArgumentException - if the coordinator namespace already exists or the coordinator
tables already exist if ifNotExist is set to falseExecutionException - if the operation failsdefault void createCoordinatorTables()
throws ExecutionException
java.lang.IllegalArgumentException - if the coordinator namespace already exists or the coordinator
tables already exist if ifNotExist is set to falseExecutionException - if the operation failsvoid dropCoordinatorTables()
throws ExecutionException
java.lang.IllegalArgumentException - if the coordinator tables do not existExecutionException - if the operation failsdefault void dropCoordinatorTables(boolean ifExist)
throws ExecutionException
ifExist - if set to true, the coordinator namespace and tables will be dropped only if
they exist. If set to false, it will throw an exception if they do not existjava.lang.IllegalArgumentException - if the coordinator tables do not exist if ifExist is set to
falseExecutionException - if the operation failsvoid truncateCoordinatorTables()
throws ExecutionException
java.lang.IllegalArgumentException - if the coordinator tables do not existExecutionException - if the operation failsboolean coordinatorTablesExist()
throws ExecutionException
ExecutionException - if the operation failsvoid repairCoordinatorTables(java.util.Map<java.lang.String,java.lang.String> options)
throws ExecutionException
options - options to repairjava.lang.IllegalArgumentException - if the coordinator tables do not existExecutionException - if the operation failsvoid close()
close in interface java.lang.AutoCloseable