com.google.cloud.bigtable.grpc
Interface BigtableTableAdminClient
-
- All Known Implementing Classes:
- BigtableTableAdminGrpcClient
public interface BigtableTableAdminClient
A client for the Cloud Bigtable Table Admin API.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description com.google.bigtable.admin.v2.Table
createTable(com.google.bigtable.admin.v2.CreateTableRequest request)
Creates a new table.ListenableFuture<com.google.bigtable.admin.v2.Table>
createTableAsync(com.google.bigtable.admin.v2.CreateTableRequest request)
Creates a new table asynchronously.ListenableFuture<com.google.longrunning.Operation>
createTableFromSnapshotAsync(com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest request)
Creates a new table from a snapshot.ListenableFuture<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.ListenableFuture<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.ListenableFuture<Empty>
dropRowRangeAsync(com.google.bigtable.admin.v2.DropRowRangeRequest request)
Permanently deletes all rows in a range.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.ListenableFuture<com.google.bigtable.admin.v2.Table>
getTableAsync(com.google.bigtable.admin.v2.GetTableRequest request)
Gets the details of a table asynchronously.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.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.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.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.
-
-
-
Method Detail
-
createTable
com.google.bigtable.admin.v2.Table createTable(com.google.bigtable.admin.v2.CreateTableRequest request)
Creates a new table. The table can be created with a full set of initial column families, specified in the request.- Parameters:
request
- aCreateTableRequest
object.
-
createTableAsync
ListenableFuture<com.google.bigtable.admin.v2.Table> createTableAsync(com.google.bigtable.admin.v2.CreateTableRequest request)
Creates a new table asynchronously. The table can be created with a full set of initial column families, specified in the request.- Parameters:
request
- aCreateTableRequest
object.
-
getTable
com.google.bigtable.admin.v2.Table getTable(com.google.bigtable.admin.v2.GetTableRequest request)
Gets the details of a table.- Parameters:
request
- aGetTableRequest
object.- Returns:
- a
Table
object.
-
getTableAsync
ListenableFuture<com.google.bigtable.admin.v2.Table> getTableAsync(com.google.bigtable.admin.v2.GetTableRequest request)
Gets the details of a table asynchronously.- Parameters:
request
- aGetTableRequest
object.- Returns:
- a
ListenableFuture
that returns aTable
object.
-
listTables
com.google.bigtable.admin.v2.ListTablesResponse listTables(com.google.bigtable.admin.v2.ListTablesRequest request)
Lists the names of all tables in an instance.- Parameters:
request
- aListTablesRequest
object.- Returns:
- a
ListTablesResponse
object.
-
listTablesAsync
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.- Parameters:
request
- aListTablesRequest
object.- Returns:
- a
ListenableFuture
that returns aListTablesResponse
object.
-
deleteTable
void deleteTable(com.google.bigtable.admin.v2.DeleteTableRequest request)
Permanently deletes a specified table and all of its data.- Parameters:
request
- aDeleteTableRequest
object.
-
deleteTableAsync
ListenableFuture<Empty> deleteTableAsync(com.google.bigtable.admin.v2.DeleteTableRequest request)
Permanently deletes a specified table and all of its data.- Parameters:
request
- aDeleteTableRequest
object.- Returns:
- a
ListenableFuture
that returnsEmpty
object.
-
modifyColumnFamily
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.- Parameters:
request
- aModifyColumnFamiliesRequest
object.- Returns:
- return
Table
object that contains the updated table structure.
-
modifyColumnFamilyAsync
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.- Parameters:
request
- aModifyColumnFamiliesRequest
object.- Returns:
- a
ListenableFuture
that returnsTable
object that contains the updated table structure.
-
dropRowRange
void dropRowRange(com.google.bigtable.admin.v2.DropRowRangeRequest request)
Permanently deletes all rows in a range.- Parameters:
request
- aDropRowRangeRequest
object.
-
dropRowRangeAsync
ListenableFuture<Empty> dropRowRangeAsync(com.google.bigtable.admin.v2.DropRowRangeRequest request)
Permanently deletes all rows in a range.- Parameters:
request
- aDropRowRangeRequest
object.- Returns:
- a
ListenableFuture
that returnsEmpty
object.
-
waitForReplication
void waitForReplication(BigtableTableName tableName, long timeout) throws InterruptedException, TimeoutException
Blocks until replication has caught up to the point this method was called or timeout is reached.- Parameters:
tableName
- the name of the table to wait for replication.timeout
- the maximum time to wait in seconds.- Throws:
InterruptedException
- if call is interrupted while waiting to recheck if replication has caught up.TimeoutException
- if timeout is reached.
-
snapshotTableAsync
ListenableFuture<com.google.longrunning.Operation> snapshotTableAsync(com.google.bigtable.admin.v2.SnapshotTableRequest request)
Creates a new snapshot from a table in a specific cluster.- Parameters:
request
- aSnapshotTableRequest
object.- Returns:
- The long running
Operation
for the request.
-
getSnapshotAsync
ListenableFuture<com.google.bigtable.admin.v2.Snapshot> getSnapshotAsync(com.google.bigtable.admin.v2.GetSnapshotRequest request)
Gets metadata information about the specified snapshot.- Parameters:
request
- aGetSnapshotRequest
object.- Returns:
- The
Snapshot
defined by the request.
-
listSnapshotsAsync
ListenableFuture<com.google.bigtable.admin.v2.ListSnapshotsResponse> listSnapshotsAsync(com.google.bigtable.admin.v2.ListSnapshotsRequest request)
Lists all snapshots associated with the specified cluster.- Parameters:
request
- aListSnapshotsRequest
object.- Returns:
- The
ListSnapshotsResponse
which has the list of the snapshots in the cluster.
-
deleteSnapshotAsync
ListenableFuture<Empty> deleteSnapshotAsync(com.google.bigtable.admin.v2.DeleteSnapshotRequest request)
Permanently deletes the specified snapshot.- Parameters:
request
- aDeleteSnapshotRequest
object.
-
createTableFromSnapshotAsync
ListenableFuture<com.google.longrunning.Operation> createTableFromSnapshotAsync(com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest request)
Creates a new table from a snapshot.- Parameters:
request
- aCreateTableFromSnapshotRequest
object.- Returns:
- The long running
Operation
for the request.
-
-