Class HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingV2Stub>
com.google.cloud.biglake.hive.v1beta.HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingV2Stub
Enclosing class:
HiveMetastoreServiceGrpc

public static final class HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service HiveMetastoreService.
 Hive Metastore Service is a biglake service that allows users to manage
 their external Hive catalogs. Full API compatibility with OSS Hive Metastore
 APIs is not supported. The methods match the Hive Metastore API spec mostly
 except for a few exceptions.
 These include listing resources with pattern,
 environment context which are combined in a single List API, return of
 ListResponse object instead of a list of resources, transactions, locks, etc.
 The BigLake Hive Metastore API defines the following resources:
 * A collection of Google Cloud projects: `/projects/*`
 * Each project has a collection of catalogs: `/catalogs/*`
 * Each catalog has a collection of databases: `/databases/*`
 * Each database has a collection of tables: `/tables/*`
 
  • Method Details

    • build

      protected HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingV2Stub>
    • createHiveCatalog

      public HiveCatalog createHiveCatalog(CreateHiveCatalogRequest request) throws io.grpc.StatusException
       Creates a new hive catalog.
       
      Throws:
      io.grpc.StatusException
    • getHiveCatalog

      public HiveCatalog getHiveCatalog(GetHiveCatalogRequest request) throws io.grpc.StatusException
       Gets the catalog specified by the resource name.
       
      Throws:
      io.grpc.StatusException
    • listHiveCatalogs

      public ListHiveCatalogsResponse listHiveCatalogs(ListHiveCatalogsRequest request) throws io.grpc.StatusException
       List all catalogs in a specified project.
       
      Throws:
      io.grpc.StatusException
    • updateHiveCatalog

      public HiveCatalog updateHiveCatalog(UpdateHiveCatalogRequest request) throws io.grpc.StatusException
       Updates an existing catalog.
       
      Throws:
      io.grpc.StatusException
    • deleteHiveCatalog

      public com.google.protobuf.Empty deleteHiveCatalog(DeleteHiveCatalogRequest request) throws io.grpc.StatusException
       Deletes an existing catalog specified by the catalog ID. Delete will fail
       if the catalog is not empty.
       
      Throws:
      io.grpc.StatusException
    • createHiveDatabase

      public HiveDatabase createHiveDatabase(CreateHiveDatabaseRequest request) throws io.grpc.StatusException
       Creates a new database.
       
      Throws:
      io.grpc.StatusException
    • getHiveDatabase

      public HiveDatabase getHiveDatabase(GetHiveDatabaseRequest request) throws io.grpc.StatusException
       Gets the database specified by the resource name.
       
      Throws:
      io.grpc.StatusException
    • listHiveDatabases

      public ListHiveDatabasesResponse listHiveDatabases(ListHiveDatabasesRequest request) throws io.grpc.StatusException
       List all databases in a specified catalog.
       
      Throws:
      io.grpc.StatusException
    • updateHiveDatabase

      public HiveDatabase updateHiveDatabase(UpdateHiveDatabaseRequest request) throws io.grpc.StatusException
       Updates an existing database specified by the database name.
       
      Throws:
      io.grpc.StatusException
    • deleteHiveDatabase

      public com.google.protobuf.Empty deleteHiveDatabase(DeleteHiveDatabaseRequest request) throws io.grpc.StatusException
       Deletes an existing database specified by the database name.
       
      Throws:
      io.grpc.StatusException
    • createHiveTable

      public HiveTable createHiveTable(CreateHiveTableRequest request) throws io.grpc.StatusException
       Creates a new hive table.
       
      Throws:
      io.grpc.StatusException
    • getHiveTable

      public HiveTable getHiveTable(GetHiveTableRequest request) throws io.grpc.StatusException
       Gets the table specified by the resource name.
       
      Throws:
      io.grpc.StatusException
    • listHiveTables

      public ListHiveTablesResponse listHiveTables(ListHiveTablesRequest request) throws io.grpc.StatusException
       List all hive tables in a specified project under the hive catalog and
       database.
       
      Throws:
      io.grpc.StatusException
    • updateHiveTable

      public HiveTable updateHiveTable(UpdateHiveTableRequest request) throws io.grpc.StatusException
       Updates an existing table specified by the table name.
       
      Throws:
      io.grpc.StatusException
    • deleteHiveTable

      public com.google.protobuf.Empty deleteHiveTable(DeleteHiveTableRequest request) throws io.grpc.StatusException
       Deletes an existing table specified by the table name.
       
      Throws:
      io.grpc.StatusException
    • batchCreatePartitions

      public BatchCreatePartitionsResponse batchCreatePartitions(BatchCreatePartitionsRequest request) throws io.grpc.StatusException
       Adds partitions to a table.
       
      Throws:
      io.grpc.StatusException
    • batchDeletePartitions

      public com.google.protobuf.Empty batchDeletePartitions(BatchDeletePartitionsRequest request) throws io.grpc.StatusException
       Deletes partitions from a table.
       
      Throws:
      io.grpc.StatusException
    • batchUpdatePartitions

      public BatchUpdatePartitionsResponse batchUpdatePartitions(BatchUpdatePartitionsRequest request) throws io.grpc.StatusException
       Updates partitions in a table.
       
      Throws:
      io.grpc.StatusException
    • listPartitions

      @ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,ListPartitionsResponse> listPartitions(ListPartitionsRequest request)
       Streams list of partitions from a table.