Class HttpJsonMetastoreServiceStub (0.35.0)

public class HttpJsonMetastoreServiceStub extends MetastoreServiceStub

REST stub implementation for the MetastoreService service API.

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

Inheritance

java.lang.Object > MetastoreServiceStub > HttpJsonMetastoreServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonMetastoreServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonMetastoreServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonMetastoreServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonMetastoreServiceStub
Exceptions
Type Description
IOException

create(MetastoreServiceStubSettings settings)

public static final HttpJsonMetastoreServiceStub create(MetastoreServiceStubSettings settings)
Parameter
Name Description
settings MetastoreServiceStubSettings
Returns
Type Description
HttpJsonMetastoreServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonMetastoreServiceStub(MetastoreServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonMetastoreServiceStub(MetastoreServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonMetastoreServiceStub, 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

HttpJsonMetastoreServiceStub(MetastoreServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonMetastoreServiceStub(MetastoreServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonMetastoreServiceStub, 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 HttpJsonStubCallableFactory

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

close()

public final void close()
Overrides

createCatalogCallable()

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

createDatabaseCallable()

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

createTableCallable()

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

deleteCatalogCallable()

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

deleteDatabaseCallable()

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

deleteTableCallable()

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

getCatalogCallable()

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

getDatabaseCallable()

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

getTableCallable()

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

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>
Overrides

listCatalogsPagedCallable()

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

listDatabasesCallable()

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

listDatabasesPagedCallable()

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

listTablesCallable()

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

listTablesPagedCallable()

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

renameTableCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDatabaseCallable()

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

updateTableCallable()

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