public class BigtableTableAdminGrpcClient extends Object implements BigtableTableAdminClient
Constructor and Description |
---|
BigtableTableAdminGrpcClient(io.grpc.Channel channel,
ScheduledExecutorService retryExecutorService,
BigtableOptions bigtableOptions)
Constructor for BigtableTableAdminGrpcClient.
|
Modifier and Type | Method and Description |
---|---|
void |
createTable(com.google.bigtable.admin.v2.CreateTableRequest request)
Creates a new table.
|
com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.Table> |
createTableAsync(com.google.bigtable.admin.v2.CreateTableRequest request)
Creates a new table asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
createTableFromSnapshotAsync(com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest request)
Creates a new table from a snapshot.
|
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> |
deleteSnapshotAsync(com.google.bigtable.admin.v2.DeleteSnapshotRequest request)
Permanently deletes the specified snapshot.
|
void |
deleteTable(com.google.bigtable.admin.v2.DeleteTableRequest request)
Permanently deletes a specified table and all of its data.
|
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> |
deleteTableAsync(com.google.bigtable.admin.v2.DeleteTableRequest request)
Permanently deletes a specified table and all of its data.
|
void |
dropRowRange(com.google.bigtable.admin.v2.DropRowRangeRequest request)
Permanently deletes all rows in a range.
|
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> |
dropRowRangeAsync(com.google.bigtable.admin.v2.DropRowRangeRequest request)
Permanently deletes all rows in a range.
|
com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.Snapshot> |
getSnapshotAsync(com.google.bigtable.admin.v2.GetSnapshotRequest request)
Gets metadata information about the specified snapshot.
|
com.google.bigtable.admin.v2.Table |
getTable(com.google.bigtable.admin.v2.GetTableRequest request)
Gets the details of a table.
|
com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.Table> |
getTableAsync(com.google.bigtable.admin.v2.GetTableRequest request)
Gets the details of a table asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.ListSnapshotsResponse> |
listSnapshotsAsync(com.google.bigtable.admin.v2.ListSnapshotsRequest request)
Lists all snapshots associated with the specified cluster.
|
com.google.bigtable.admin.v2.ListTablesResponse |
listTables(com.google.bigtable.admin.v2.ListTablesRequest request)
Lists the names of all tables in an instance.
|
com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.ListTablesResponse> |
listTablesAsync(com.google.bigtable.admin.v2.ListTablesRequest request)
Lists the names of all tables in an instance asynchronously.
|
com.google.bigtable.admin.v2.Table |
modifyColumnFamily(com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest request)
Creates, modifies or deletes a new column family within a specified table.
|
com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.Table> |
modifyColumnFamilyAsync(com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest request)
Creates, modifies or deletes a new column family within a specified table.
|
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
snapshotTableAsync(com.google.bigtable.admin.v2.SnapshotTableRequest request)
Creates a new snapshot from a table in a specific cluster.
|
void |
waitForReplication(BigtableTableName tableName,
long timeout)
Blocks until replication has caught up to the point this method was called or timeout is
reached.
|
public BigtableTableAdminGrpcClient(io.grpc.Channel channel, ScheduledExecutorService retryExecutorService, BigtableOptions bigtableOptions)
Constructor for BigtableTableAdminGrpcClient.
channel
- a Channel
object.public com.google.bigtable.admin.v2.ListTablesResponse listTables(com.google.bigtable.admin.v2.ListTablesRequest request)
listTables
in interface BigtableTableAdminClient
request
- a ListTablesRequest
object.ListTablesResponse
object.public com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.ListTablesResponse> listTablesAsync(com.google.bigtable.admin.v2.ListTablesRequest request)
listTablesAsync
in interface BigtableTableAdminClient
request
- a ListTablesRequest
object.ListenableFuture
that returns a ListTablesResponse
object.public com.google.bigtable.admin.v2.Table getTable(com.google.bigtable.admin.v2.GetTableRequest request)
getTable
in interface BigtableTableAdminClient
request
- a GetTableRequest
object.Table
object.public com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.Table> getTableAsync(com.google.bigtable.admin.v2.GetTableRequest request)
getTableAsync
in interface BigtableTableAdminClient
request
- a GetTableRequest
object.ListenableFuture
that returns a Table
object.public void createTable(com.google.bigtable.admin.v2.CreateTableRequest request)
createTable
in interface BigtableTableAdminClient
request
- a CreateTableRequest
object.public com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.Table> createTableAsync(com.google.bigtable.admin.v2.CreateTableRequest request)
createTableAsync
in interface BigtableTableAdminClient
request
- a CreateTableRequest
object.public com.google.bigtable.admin.v2.Table modifyColumnFamily(com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest request)
modifyColumnFamily
in interface BigtableTableAdminClient
request
- a ModifyColumnFamiliesRequest
object.Table
object that contains the updated table structure.public com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.Table> modifyColumnFamilyAsync(com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest request)
modifyColumnFamilyAsync
in interface BigtableTableAdminClient
request
- a ModifyColumnFamiliesRequest
object.public void deleteTable(com.google.bigtable.admin.v2.DeleteTableRequest request)
deleteTable
in interface BigtableTableAdminClient
request
- a DeleteTableRequest
object.public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteTableAsync(com.google.bigtable.admin.v2.DeleteTableRequest request)
deleteTableAsync
in interface BigtableTableAdminClient
request
- a DeleteTableRequest
object.public void dropRowRange(com.google.bigtable.admin.v2.DropRowRangeRequest request)
dropRowRange
in interface BigtableTableAdminClient
request
- a DropRowRangeRequest
object.public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> dropRowRangeAsync(com.google.bigtable.admin.v2.DropRowRangeRequest request)
dropRowRangeAsync
in interface BigtableTableAdminClient
request
- a DropRowRangeRequest
object.public void waitForReplication(BigtableTableName tableName, long timeout) throws InterruptedException, TimeoutException
This is a private alpha release of Cloud Bigtable replication. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
waitForReplication
in interface BigtableTableAdminClient
tableName
- the name of the table to wait for replication.timeout
- the maximum time to wait in seconds.InterruptedException
- if call is interrupted while waiting to recheck if replication has
caught up.TimeoutException
- if timeout is reached.public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> snapshotTableAsync(com.google.bigtable.admin.v2.SnapshotTableRequest request)
snapshotTableAsync
in interface BigtableTableAdminClient
request
- a SnapshotTableRequest
object.Operation
for the request.public com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.Snapshot> getSnapshotAsync(com.google.bigtable.admin.v2.GetSnapshotRequest request)
getSnapshotAsync
in interface BigtableTableAdminClient
request
- a GetSnapshotRequest
object.Snapshot
definied by the request.public com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.ListSnapshotsResponse> listSnapshotsAsync(com.google.bigtable.admin.v2.ListSnapshotsRequest request)
listSnapshotsAsync
in interface BigtableTableAdminClient
request
- a ListSnapshotsRequest
object.ListSnapshotsResponse
which has the list of the snapshots in the cluster.public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteSnapshotAsync(com.google.bigtable.admin.v2.DeleteSnapshotRequest request)
deleteSnapshotAsync
in interface BigtableTableAdminClient
request
- a DeleteSnapshotRequest
object.public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> createTableFromSnapshotAsync(com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest request)
createTableFromSnapshotAsync
in interface BigtableTableAdminClient
request
- a CreateTableFromSnapshotRequest
object.Operation
for the request.