BigtableTableAdminGCJClient (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.grpc

Class BigtableTableAdminGCJClient

    • Constructor Summary

      Constructors 
      Constructor and Description
      BigtableTableAdminGCJClient(com.google.cloud.bigtable.admin.v2.BigtableTableAdminClient delegate, com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient baseAdminClient) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close() 
      com.google.cloud.bigtable.admin.v2.models.Table createTable(com.google.cloud.bigtable.admin.v2.models.CreateTableRequest request)
      Creates a new table.
      com.google.api.core.ApiFuture<com.google.cloud.bigtable.admin.v2.models.Table> createTableAsync(com.google.cloud.bigtable.admin.v2.models.CreateTableRequest request)
      Creates a new table asynchronously.
      com.google.api.core.ApiFuture<com.google.longrunning.Operation> createTableFromSnapshotAsync(com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest request)
      Creates a new table from a snapshot.
      com.google.api.core.ApiFuture<Void> deleteSnapshotAsync(com.google.bigtable.admin.v2.DeleteSnapshotRequest request)
      Permanently deletes the specified snapshot.
      void deleteTable(String tableId)
      Permanently deletes a specified table and all of its data.
      com.google.api.core.ApiFuture<Void> deleteTableAsync(String tableId)
      Permanently deletes a specified table and all of its data.
      void dropAllRows(String tableId)
      Drops all data in the table.
      com.google.api.core.ApiFuture<Void> dropAllRowsAsync(String tableId)
      Asynchronously drops all data in the table
      void dropRowRange(String tableId, String rowKeyPrefix)
      Permanently deletes all rows in a range.
      com.google.api.core.ApiFuture<Void> dropRowRangeAsync(String tableId, String rowKeyPrefix)
      Permanently deletes all rows in a range.
      com.google.api.core.ApiFuture<com.google.bigtable.admin.v2.Snapshot> getSnapshotAsync(com.google.bigtable.admin.v2.GetSnapshotRequest request)
      Gets metadata information about the specified snapshot.
      com.google.cloud.bigtable.admin.v2.models.Table getTable(String tableId)
      Gets the details of a table.
      com.google.api.core.ApiFuture<com.google.cloud.bigtable.admin.v2.models.Table> getTableAsync(String tableId)
      Gets the details of a table asynchronously.
      com.google.api.core.ApiFuture<com.google.bigtable.admin.v2.ListSnapshotsResponse> listSnapshotsAsync(com.google.bigtable.admin.v2.ListSnapshotsRequest request)
      Lists all snapshots associated with the specified cluster.
      List<String> listTables()
      Lists the names of all tables in an instance.
      com.google.api.core.ApiFuture<List<String>> listTablesAsync()
      Lists the names of all tables in an instance asynchronously.
      com.google.cloud.bigtable.admin.v2.models.Table modifyFamilies(com.google.cloud.bigtable.admin.v2.models.ModifyColumnFamiliesRequest request)
      Creates, modifies or deletes a new column family within a specified table.
      com.google.api.core.ApiFuture<com.google.cloud.bigtable.admin.v2.models.Table> modifyFamiliesAsync(com.google.cloud.bigtable.admin.v2.models.ModifyColumnFamiliesRequest request)
      Creates, modifies or deletes a new column family within a specified table.
      com.google.api.core.ApiFuture<com.google.longrunning.Operation> snapshotTableAsync(com.google.bigtable.admin.v2.SnapshotTableRequest request)
      Creates a new snapshot from a table in a specific cluster.
    • Constructor Detail

      • BigtableTableAdminGCJClient

        public BigtableTableAdminGCJClient(@Nonnull
                                           com.google.cloud.bigtable.admin.v2.BigtableTableAdminClient delegate,
                                           @Nonnull
                                           com.google.cloud.bigtable.admin.v2.BaseBigtableTableAdminClient baseAdminClient)
    • Method Detail

      • createTable

        public com.google.cloud.bigtable.admin.v2.models.Table createTable(com.google.cloud.bigtable.admin.v2.models.CreateTableRequest request)
        Creates a new table. The table can be created with a full set of initial column families, specified in the request.
        Specified by:
        createTable in interface IBigtableTableAdminClient
        Parameters:
        request - a CreateTableRequest object.
      • createTableAsync

        public com.google.api.core.ApiFuture<com.google.cloud.bigtable.admin.v2.models.Table> createTableAsync(com.google.cloud.bigtable.admin.v2.models.CreateTableRequest request)
        Creates a new table asynchronously. The table can be created with a full set of initial column families, specified in the request.
        Specified by:
        createTableAsync in interface IBigtableTableAdminClient
        Parameters:
        request - a CreateTableRequest object.
      • getTable

        public com.google.cloud.bigtable.admin.v2.models.Table getTable(String tableId)
        Gets the details of a table.
        Specified by:
        getTable in interface IBigtableTableAdminClient
        Parameters:
        tableId - a String object.
        Returns:
        a Table object.
      • getTableAsync

        public com.google.api.core.ApiFuture<com.google.cloud.bigtable.admin.v2.models.Table> getTableAsync(String tableId)
        Gets the details of a table asynchronously.
        Specified by:
        getTableAsync in interface IBigtableTableAdminClient
        Returns:
        a ApiFuture that returns a Table object.
      • listTablesAsync

        public com.google.api.core.ApiFuture<List<String>> listTablesAsync()
        Lists the names of all tables in an instance asynchronously.
        Specified by:
        listTablesAsync in interface IBigtableTableAdminClient
        Returns:
        a ApiFuture of type Void will be set when request is successful otherwise exception will be thrown.
      • deleteTableAsync

        public com.google.api.core.ApiFuture<Void> deleteTableAsync(String tableId)
        Permanently deletes a specified table and all of its data.
        Specified by:
        deleteTableAsync in interface IBigtableTableAdminClient
        Returns:
        a ApiFuture of type Void will be set when request is successful otherwise exception will be thrown.
      • modifyFamilies

        public com.google.cloud.bigtable.admin.v2.models.Table modifyFamilies(com.google.cloud.bigtable.admin.v2.models.ModifyColumnFamiliesRequest request)
        Creates, modifies or deletes a new column family within a specified table.
        Specified by:
        modifyFamilies in interface IBigtableTableAdminClient
        Parameters:
        request - a ModifyColumnFamiliesRequest object.
        Returns:
        return Table object that contains the updated table structure.
      • modifyFamiliesAsync

        public com.google.api.core.ApiFuture<com.google.cloud.bigtable.admin.v2.models.Table> modifyFamiliesAsync(com.google.cloud.bigtable.admin.v2.models.ModifyColumnFamiliesRequest request)
        Creates, modifies or deletes a new column family within a specified table.
        Specified by:
        modifyFamiliesAsync in interface IBigtableTableAdminClient
        Parameters:
        request - a ModifyColumnFamiliesRequest object.
        Returns:
        a ApiFuture that returns Table object that contains the updated table structure.
      • snapshotTableAsync

        public com.google.api.core.ApiFuture<com.google.longrunning.Operation> snapshotTableAsync(com.google.bigtable.admin.v2.SnapshotTableRequest request)
        Creates a new snapshot from a table in a specific cluster.
        Specified by:
        snapshotTableAsync in interface IBigtableTableAdminClient
        Parameters:
        request - a SnapshotTableRequest object.
        Returns:
        The long running Operation for the request.
      • getSnapshotAsync

        public com.google.api.core.ApiFuture<com.google.bigtable.admin.v2.Snapshot> getSnapshotAsync(com.google.bigtable.admin.v2.GetSnapshotRequest request)
        Gets metadata information about the specified snapshot.
        Specified by:
        getSnapshotAsync in interface IBigtableTableAdminClient
        Parameters:
        request - a GetSnapshotRequest object.
        Returns:
        The Snapshot defined by the request.
      • listSnapshotsAsync

        public com.google.api.core.ApiFuture<com.google.bigtable.admin.v2.ListSnapshotsResponse> listSnapshotsAsync(com.google.bigtable.admin.v2.ListSnapshotsRequest request)
        Lists all snapshots associated with the specified cluster.
        Specified by:
        listSnapshotsAsync in interface IBigtableTableAdminClient
        Parameters:
        request - a ListSnapshotsRequest object.
        Returns:
        The ListSnapshotsResponse which has the list of the snapshots in the cluster.
      • deleteSnapshotAsync

        public com.google.api.core.ApiFuture<Void> deleteSnapshotAsync(com.google.bigtable.admin.v2.DeleteSnapshotRequest request)
        Permanently deletes the specified snapshot.
        Specified by:
        deleteSnapshotAsync in interface IBigtableTableAdminClient
        Parameters:
        request - a DeleteSnapshotRequest object.
      • createTableFromSnapshotAsync

        public com.google.api.core.ApiFuture<com.google.longrunning.Operation> createTableFromSnapshotAsync(com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest request)
        Creates a new table from a snapshot.
        Specified by:
        createTableFromSnapshotAsync in interface IBigtableTableAdminClient
        Parameters:
        request - a CreateTableFromSnapshotRequest object.
        Returns:
        The long running Operation for the request.