Class GrpcMetastoreServiceStub (0.11.0)

public class GrpcMetastoreServiceStub extends MetastoreServiceStub

gRPC stub implementation for the MetastoreService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > MetastoreServiceStub > GrpcMetastoreServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcMetastoreServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcMetastoreServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcMetastoreServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcMetastoreServiceStub
Exceptions
TypeDescription
IOException

create(MetastoreServiceStubSettings settings)

public static final GrpcMetastoreServiceStub create(MetastoreServiceStubSettings settings)
Parameter
NameDescription
settingsMetastoreServiceStubSettings
Returns
TypeDescription
GrpcMetastoreServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcMetastoreServiceStub(MetastoreServiceStubSettings settings, ClientContext clientContext)

protected GrpcMetastoreServiceStub(MetastoreServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcMetastoreServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsMetastoreServiceStubSettings
clientContextClientContext

GrpcMetastoreServiceStub(MetastoreServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcMetastoreServiceStub(MetastoreServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcMetastoreServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsMetastoreServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

checkLockCallable()

public UnaryCallable<CheckLockRequest,Lock> checkLockCallable()
Returns
TypeDescription
UnaryCallable<CheckLockRequest,Lock>
Overrides

close()

public final void close()
Overrides

createCatalogCallable()

public UnaryCallable<CreateCatalogRequest,Catalog> createCatalogCallable()
Returns
TypeDescription
UnaryCallable<CreateCatalogRequest,Catalog>
Overrides

createDatabaseCallable()

public UnaryCallable<CreateDatabaseRequest,Database> createDatabaseCallable()
Returns
TypeDescription
UnaryCallable<CreateDatabaseRequest,Database>
Overrides

createLockCallable()

public UnaryCallable<CreateLockRequest,Lock> createLockCallable()
Returns
TypeDescription
UnaryCallable<CreateLockRequest,Lock>
Overrides

createTableCallable()

public UnaryCallable<CreateTableRequest,Table> createTableCallable()
Returns
TypeDescription
UnaryCallable<CreateTableRequest,Table>
Overrides

deleteCatalogCallable()

public UnaryCallable<DeleteCatalogRequest,Catalog> deleteCatalogCallable()
Returns
TypeDescription
UnaryCallable<DeleteCatalogRequest,Catalog>
Overrides

deleteDatabaseCallable()

public UnaryCallable<DeleteDatabaseRequest,Database> deleteDatabaseCallable()
Returns
TypeDescription
UnaryCallable<DeleteDatabaseRequest,Database>
Overrides

deleteLockCallable()

public UnaryCallable<DeleteLockRequest,Empty> deleteLockCallable()
Returns
TypeDescription
UnaryCallable<DeleteLockRequest,Empty>
Overrides

deleteTableCallable()

public UnaryCallable<DeleteTableRequest,Table> deleteTableCallable()
Returns
TypeDescription
UnaryCallable<DeleteTableRequest,Table>
Overrides

getCatalogCallable()

public UnaryCallable<GetCatalogRequest,Catalog> getCatalogCallable()
Returns
TypeDescription
UnaryCallable<GetCatalogRequest,Catalog>
Overrides

getDatabaseCallable()

public UnaryCallable<GetDatabaseRequest,Database> getDatabaseCallable()
Returns
TypeDescription
UnaryCallable<GetDatabaseRequest,Database>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getTableCallable()

public UnaryCallable<GetTableRequest,Table> getTableCallable()
Returns
TypeDescription
UnaryCallable<GetTableRequest,Table>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCatalogsCallable()

public UnaryCallable<ListCatalogsRequest,ListCatalogsResponse> listCatalogsCallable()
Returns
TypeDescription
UnaryCallable<ListCatalogsRequest,ListCatalogsResponse>
Overrides

listCatalogsPagedCallable()

public UnaryCallable<ListCatalogsRequest,MetastoreServiceClient.ListCatalogsPagedResponse> listCatalogsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCatalogsRequest,ListCatalogsPagedResponse>
Overrides

listDatabasesCallable()

public UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> listDatabasesCallable()
Returns
TypeDescription
UnaryCallable<ListDatabasesRequest,ListDatabasesResponse>
Overrides

listDatabasesPagedCallable()

public UnaryCallable<ListDatabasesRequest,MetastoreServiceClient.ListDatabasesPagedResponse> listDatabasesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDatabasesRequest,ListDatabasesPagedResponse>
Overrides

listLocksCallable()

public UnaryCallable<ListLocksRequest,ListLocksResponse> listLocksCallable()
Returns
TypeDescription
UnaryCallable<ListLocksRequest,ListLocksResponse>
Overrides

listLocksPagedCallable()

public UnaryCallable<ListLocksRequest,MetastoreServiceClient.ListLocksPagedResponse> listLocksPagedCallable()
Returns
TypeDescription
UnaryCallable<ListLocksRequest,ListLocksPagedResponse>
Overrides

listTablesCallable()

public UnaryCallable<ListTablesRequest,ListTablesResponse> listTablesCallable()
Returns
TypeDescription
UnaryCallable<ListTablesRequest,ListTablesResponse>
Overrides

listTablesPagedCallable()

public UnaryCallable<ListTablesRequest,MetastoreServiceClient.ListTablesPagedResponse> listTablesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListTablesRequest,ListTablesPagedResponse>
Overrides

renameTableCallable()

public UnaryCallable<RenameTableRequest,Table> renameTableCallable()
Returns
TypeDescription
UnaryCallable<RenameTableRequest,Table>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDatabaseCallable()

public UnaryCallable<UpdateDatabaseRequest,Database> updateDatabaseCallable()
Returns
TypeDescription
UnaryCallable<UpdateDatabaseRequest,Database>
Overrides

updateTableCallable()

public UnaryCallable<UpdateTableRequest,Table> updateTableCallable()
Returns
TypeDescription
UnaryCallable<UpdateTableRequest,Table>
Overrides