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/*`
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionAdds partitions to a table.com.google.protobuf.EmptyDeletes partitions from a table.Updates partitions in a table.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Creates a new hive catalog.Creates a new database.createHiveTable(CreateHiveTableRequest request) Creates a new hive table.com.google.protobuf.EmptyDeletes an existing catalog specified by the catalog ID.com.google.protobuf.EmptyDeletes an existing database specified by the database name.com.google.protobuf.EmptydeleteHiveTable(DeleteHiveTableRequest request) Deletes an existing table specified by the table name.getHiveCatalog(GetHiveCatalogRequest request) Gets the catalog specified by the resource name.getHiveDatabase(GetHiveDatabaseRequest request) Gets the database specified by the resource name.getHiveTable(GetHiveTableRequest request) Gets the table specified by the resource name.listHiveCatalogs(ListHiveCatalogsRequest request) List all catalogs in a specified project.List all databases in a specified catalog.listHiveTables(ListHiveTablesRequest request) List all hive tables in a specified project under the hive catalog and database.io.grpc.stub.BlockingClientCall<?,ListPartitionsResponse> listPartitions(ListPartitionsRequest request) Streams list of partitions from a table.Updates an existing catalog.Updates an existing database specified by the database name.updateHiveTable(UpdateHiveTableRequest request) Updates an existing table specified by the table name.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.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
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
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
Creates a new hive table.
- Throws:
io.grpc.StatusException
-
getHiveTable
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
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.
-