Class MetastoreServiceStubSettings.Builder (0.22.0)

public static class MetastoreServiceStubSettings.Builder extends StubSettings.Builder<MetastoreServiceStubSettings,MetastoreServiceStubSettings.Builder>

Builder for MetastoreServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > MetastoreServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(MetastoreServiceStubSettings settings)

protected Builder(MetastoreServiceStubSettings settings)
Parameter
NameDescription
settingsMetastoreServiceStubSettings

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public MetastoreServiceStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
MetastoreServiceStubSettings.Builder

build()

public MetastoreServiceStubSettings build()
Returns
TypeDescription
MetastoreServiceStubSettings
Overrides
Exceptions
TypeDescription
IOException

checkLockSettings()

public UnaryCallSettings.Builder<CheckLockRequest,Lock> checkLockSettings()

Returns the builder for the settings used for calls to checkLock.

Returns
TypeDescription
Builder<CheckLockRequest,Lock>

createCatalogSettings()

public UnaryCallSettings.Builder<CreateCatalogRequest,Catalog> createCatalogSettings()

Returns the builder for the settings used for calls to createCatalog.

Returns
TypeDescription
Builder<CreateCatalogRequest,Catalog>

createDatabaseSettings()

public UnaryCallSettings.Builder<CreateDatabaseRequest,Database> createDatabaseSettings()

Returns the builder for the settings used for calls to createDatabase.

Returns
TypeDescription
Builder<CreateDatabaseRequest,Database>

createLockSettings()

public UnaryCallSettings.Builder<CreateLockRequest,Lock> createLockSettings()

Returns the builder for the settings used for calls to createLock.

Returns
TypeDescription
Builder<CreateLockRequest,Lock>

createTableSettings()

public UnaryCallSettings.Builder<CreateTableRequest,Table> createTableSettings()

Returns the builder for the settings used for calls to createTable.

Returns
TypeDescription
Builder<CreateTableRequest,Table>

deleteCatalogSettings()

public UnaryCallSettings.Builder<DeleteCatalogRequest,Catalog> deleteCatalogSettings()

Returns the builder for the settings used for calls to deleteCatalog.

Returns
TypeDescription
Builder<DeleteCatalogRequest,Catalog>

deleteDatabaseSettings()

public UnaryCallSettings.Builder<DeleteDatabaseRequest,Database> deleteDatabaseSettings()

Returns the builder for the settings used for calls to deleteDatabase.

Returns
TypeDescription
Builder<DeleteDatabaseRequest,Database>

deleteLockSettings()

public UnaryCallSettings.Builder<DeleteLockRequest,Empty> deleteLockSettings()

Returns the builder for the settings used for calls to deleteLock.

Returns
TypeDescription
Builder<DeleteLockRequest,Empty>

deleteTableSettings()

public UnaryCallSettings.Builder<DeleteTableRequest,Table> deleteTableSettings()

Returns the builder for the settings used for calls to deleteTable.

Returns
TypeDescription
Builder<DeleteTableRequest,Table>

getCatalogSettings()

public UnaryCallSettings.Builder<GetCatalogRequest,Catalog> getCatalogSettings()

Returns the builder for the settings used for calls to getCatalog.

Returns
TypeDescription
Builder<GetCatalogRequest,Catalog>

getDatabaseSettings()

public UnaryCallSettings.Builder<GetDatabaseRequest,Database> getDatabaseSettings()

Returns the builder for the settings used for calls to getDatabase.

Returns
TypeDescription
Builder<GetDatabaseRequest,Database>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getTableSettings()

public UnaryCallSettings.Builder<GetTableRequest,Table> getTableSettings()

Returns the builder for the settings used for calls to getTable.

Returns
TypeDescription
Builder<GetTableRequest,Table>

listCatalogsSettings()

public PagedCallSettings.Builder<ListCatalogsRequest,ListCatalogsResponse,MetastoreServiceClient.ListCatalogsPagedResponse> listCatalogsSettings()

Returns the builder for the settings used for calls to listCatalogs.

Returns
TypeDescription
Builder<ListCatalogsRequest,ListCatalogsResponse,ListCatalogsPagedResponse>

listDatabasesSettings()

public PagedCallSettings.Builder<ListDatabasesRequest,ListDatabasesResponse,MetastoreServiceClient.ListDatabasesPagedResponse> listDatabasesSettings()

Returns the builder for the settings used for calls to listDatabases.

Returns
TypeDescription
Builder<ListDatabasesRequest,ListDatabasesResponse,ListDatabasesPagedResponse>

listLocksSettings()

public PagedCallSettings.Builder<ListLocksRequest,ListLocksResponse,MetastoreServiceClient.ListLocksPagedResponse> listLocksSettings()

Returns the builder for the settings used for calls to listLocks.

Returns
TypeDescription
Builder<ListLocksRequest,ListLocksResponse,ListLocksPagedResponse>

listTablesSettings()

public PagedCallSettings.Builder<ListTablesRequest,ListTablesResponse,MetastoreServiceClient.ListTablesPagedResponse> listTablesSettings()

Returns the builder for the settings used for calls to listTables.

Returns
TypeDescription
Builder<ListTablesRequest,ListTablesResponse,ListTablesPagedResponse>

renameTableSettings()

public UnaryCallSettings.Builder<RenameTableRequest,Table> renameTableSettings()

Returns the builder for the settings used for calls to renameTable.

Returns
TypeDescription
Builder<RenameTableRequest,Table>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>

updateDatabaseSettings()

public UnaryCallSettings.Builder<UpdateDatabaseRequest,Database> updateDatabaseSettings()

Returns the builder for the settings used for calls to updateDatabase.

Returns
TypeDescription
Builder<UpdateDatabaseRequest,Database>

updateTableSettings()

public UnaryCallSettings.Builder<UpdateTableRequest,Table> updateTableSettings()

Returns the builder for the settings used for calls to updateTable.

Returns
TypeDescription
Builder<UpdateTableRequest,Table>