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.
Static Methods
create(ClientContext clientContext)
public static final GrpcMetastoreServiceStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext |
ClientContext |
Returns | |
---|---|
Type | Description |
GrpcMetastoreServiceStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcMetastoreServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext |
ClientContext |
callableFactory |
GrpcStubCallableFactory |
Returns | |
---|---|
Type | Description |
GrpcMetastoreServiceStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(MetastoreServiceStubSettings settings)
public static final GrpcMetastoreServiceStub create(MetastoreServiceStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings |
MetastoreServiceStubSettings |
Returns | |
---|---|
Type | Description |
GrpcMetastoreServiceStub |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
settings |
MetastoreServiceStubSettings |
clientContext |
ClientContext |
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 | |
---|---|
Name | Description |
settings |
MetastoreServiceStubSettings |
clientContext |
ClientContext |
callableFactory |
GrpcStubCallableFactory |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration |
long |
unit |
TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
checkLockCallable()
public UnaryCallable<CheckLockRequest,Lock> checkLockCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CheckLockRequest,Lock> |
close()
public final void close()
createCatalogCallable()
public UnaryCallable<CreateCatalogRequest,Catalog> createCatalogCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateCatalogRequest,Catalog> |
createDatabaseCallable()
public UnaryCallable<CreateDatabaseRequest,Database> createDatabaseCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateDatabaseRequest,Database> |
createLockCallable()
public UnaryCallable<CreateLockRequest,Lock> createLockCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateLockRequest,Lock> |
createTableCallable()
public UnaryCallable<CreateTableRequest,Table> createTableCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateTableRequest,Table> |
deleteCatalogCallable()
public UnaryCallable<DeleteCatalogRequest,Catalog> deleteCatalogCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteCatalogRequest,Catalog> |
deleteDatabaseCallable()
public UnaryCallable<DeleteDatabaseRequest,Database> deleteDatabaseCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteDatabaseRequest,Database> |
deleteLockCallable()
public UnaryCallable<DeleteLockRequest,Empty> deleteLockCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteLockRequest,Empty> |
deleteTableCallable()
public UnaryCallable<DeleteTableRequest,Table> deleteTableCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteTableRequest,Table> |
getCatalogCallable()
public UnaryCallable<GetCatalogRequest,Catalog> getCatalogCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetCatalogRequest,Catalog> |
getDatabaseCallable()
public UnaryCallable<GetDatabaseRequest,Database> getDatabaseCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDatabaseRequest,Database> |
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns | |
---|---|
Type | Description |
GrpcOperationsStub |
getTableCallable()
public UnaryCallable<GetTableRequest,Table> getTableCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetTableRequest,Table> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listCatalogsCallable()
public UnaryCallable<ListCatalogsRequest,ListCatalogsResponse> listCatalogsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListCatalogsRequest,ListCatalogsResponse> |
listCatalogsPagedCallable()
public UnaryCallable<ListCatalogsRequest,MetastoreServiceClient.ListCatalogsPagedResponse> listCatalogsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListCatalogsRequest,ListCatalogsPagedResponse> |
listDatabasesCallable()
public UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> listDatabasesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> |
listDatabasesPagedCallable()
public UnaryCallable<ListDatabasesRequest,MetastoreServiceClient.ListDatabasesPagedResponse> listDatabasesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDatabasesRequest,ListDatabasesPagedResponse> |
listLocksCallable()
public UnaryCallable<ListLocksRequest,ListLocksResponse> listLocksCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListLocksRequest,ListLocksResponse> |
listLocksPagedCallable()
public UnaryCallable<ListLocksRequest,MetastoreServiceClient.ListLocksPagedResponse> listLocksPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListLocksRequest,ListLocksPagedResponse> |
listTablesCallable()
public UnaryCallable<ListTablesRequest,ListTablesResponse> listTablesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListTablesRequest,ListTablesResponse> |
listTablesPagedCallable()
public UnaryCallable<ListTablesRequest,MetastoreServiceClient.ListTablesPagedResponse> listTablesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListTablesRequest,ListTablesPagedResponse> |
renameTableCallable()
public UnaryCallable<RenameTableRequest,Table> renameTableCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<RenameTableRequest,Table> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
updateDatabaseCallable()
public UnaryCallable<UpdateDatabaseRequest,Database> updateDatabaseCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateDatabaseRequest,Database> |
updateTableCallable()
public UnaryCallable<UpdateTableRequest,Table> updateTableCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateTableRequest,Table> |