Class HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingStub (0.76.0)

public static final class HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingStub extends AbstractBlockingStub<HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingStub>

A stub to allow clients to do limited 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/*

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingStub

Methods

batchCreatePartitions(BatchCreatePartitionsRequest request)

public BatchCreatePartitionsResponse batchCreatePartitions(BatchCreatePartitionsRequest request)

Adds partitions to a table.

Parameter
Name Description
request BatchCreatePartitionsRequest
Returns
Type Description
BatchCreatePartitionsResponse

batchDeletePartitions(BatchDeletePartitionsRequest request)

public Empty batchDeletePartitions(BatchDeletePartitionsRequest request)

Deletes partitions from a table.

Parameter
Name Description
request BatchDeletePartitionsRequest
Returns
Type Description
Empty

batchUpdatePartitions(BatchUpdatePartitionsRequest request)

public BatchUpdatePartitionsResponse batchUpdatePartitions(BatchUpdatePartitionsRequest request)

Updates partitions in a table.

Parameter
Name Description
request BatchUpdatePartitionsRequest
Returns
Type Description
BatchUpdatePartitionsResponse

build(Channel channel, CallOptions callOptions)

protected HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
HiveMetastoreServiceGrpc.HiveMetastoreServiceBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createHiveCatalog(CreateHiveCatalogRequest request)

public HiveCatalog createHiveCatalog(CreateHiveCatalogRequest request)

Creates a new hive catalog.

Parameter
Name Description
request CreateHiveCatalogRequest
Returns
Type Description
HiveCatalog

createHiveDatabase(CreateHiveDatabaseRequest request)

public HiveDatabase createHiveDatabase(CreateHiveDatabaseRequest request)

Creates a new database.

Parameter
Name Description
request CreateHiveDatabaseRequest
Returns
Type Description
HiveDatabase

createHiveTable(CreateHiveTableRequest request)

public HiveTable createHiveTable(CreateHiveTableRequest request)

Creates a new hive table.

Parameter
Name Description
request CreateHiveTableRequest
Returns
Type Description
HiveTable

deleteHiveCatalog(DeleteHiveCatalogRequest request)

public Empty deleteHiveCatalog(DeleteHiveCatalogRequest request)

Deletes an existing catalog specified by the catalog ID. Delete will fail if the catalog is not empty.

Parameter
Name Description
request DeleteHiveCatalogRequest
Returns
Type Description
Empty

deleteHiveDatabase(DeleteHiveDatabaseRequest request)

public Empty deleteHiveDatabase(DeleteHiveDatabaseRequest request)

Deletes an existing database specified by the database name.

Parameter
Name Description
request DeleteHiveDatabaseRequest
Returns
Type Description
Empty

deleteHiveTable(DeleteHiveTableRequest request)

public Empty deleteHiveTable(DeleteHiveTableRequest request)

Deletes an existing table specified by the table name.

Parameter
Name Description
request DeleteHiveTableRequest
Returns
Type Description
Empty

getHiveCatalog(GetHiveCatalogRequest request)

public HiveCatalog getHiveCatalog(GetHiveCatalogRequest request)

Gets the catalog specified by the resource name.

Parameter
Name Description
request GetHiveCatalogRequest
Returns
Type Description
HiveCatalog

getHiveDatabase(GetHiveDatabaseRequest request)

public HiveDatabase getHiveDatabase(GetHiveDatabaseRequest request)

Gets the database specified by the resource name.

Parameter
Name Description
request GetHiveDatabaseRequest
Returns
Type Description
HiveDatabase

getHiveTable(GetHiveTableRequest request)

public HiveTable getHiveTable(GetHiveTableRequest request)

Gets the table specified by the resource name.

Parameter
Name Description
request GetHiveTableRequest
Returns
Type Description
HiveTable

listHiveCatalogs(ListHiveCatalogsRequest request)

public ListHiveCatalogsResponse listHiveCatalogs(ListHiveCatalogsRequest request)

List all catalogs in a specified project.

Parameter
Name Description
request ListHiveCatalogsRequest
Returns
Type Description
ListHiveCatalogsResponse

listHiveDatabases(ListHiveDatabasesRequest request)

public ListHiveDatabasesResponse listHiveDatabases(ListHiveDatabasesRequest request)

List all databases in a specified catalog.

Parameter
Name Description
request ListHiveDatabasesRequest
Returns
Type Description
ListHiveDatabasesResponse

listHiveTables(ListHiveTablesRequest request)

public ListHiveTablesResponse listHiveTables(ListHiveTablesRequest request)

List all hive tables in a specified project under the hive catalog and database.

Parameter
Name Description
request ListHiveTablesRequest
Returns
Type Description
ListHiveTablesResponse

listPartitions(ListPartitionsRequest request)

public Iterator<ListPartitionsResponse> listPartitions(ListPartitionsRequest request)

Streams list of partitions from a table.

Parameter
Name Description
request ListPartitionsRequest
Returns
Type Description
Iterator<ListPartitionsResponse>

updateHiveCatalog(UpdateHiveCatalogRequest request)

public HiveCatalog updateHiveCatalog(UpdateHiveCatalogRequest request)

Updates an existing catalog.

Parameter
Name Description
request UpdateHiveCatalogRequest
Returns
Type Description
HiveCatalog

updateHiveDatabase(UpdateHiveDatabaseRequest request)

public HiveDatabase updateHiveDatabase(UpdateHiveDatabaseRequest request)

Updates an existing database specified by the database name.

Parameter
Name Description
request UpdateHiveDatabaseRequest
Returns
Type Description
HiveDatabase

updateHiveTable(UpdateHiveTableRequest request)

public HiveTable updateHiveTable(UpdateHiveTableRequest request)

Updates an existing table specified by the table name.

Parameter
Name Description
request UpdateHiveTableRequest
Returns
Type Description
HiveTable