Class MetastoreServiceSettings.Builder (0.43.0)

public static class MetastoreServiceSettings.Builder extends ClientSettings.Builder<MetastoreServiceSettings,MetastoreServiceSettings.Builder>

Builder for MetastoreServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > MetastoreServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(MetastoreServiceSettings settings)

protected Builder(MetastoreServiceSettings settings)
Parameter
Name Description
settings MetastoreServiceSettings

Builder(MetastoreServiceStubSettings.Builder stubSettings)

protected Builder(MetastoreServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings MetastoreServiceStubSettings.Builder

Methods

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

public MetastoreServiceSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
MetastoreServiceSettings.Builder

build()

public MetastoreServiceSettings build()
Returns
Type Description
MetastoreServiceSettings
Overrides
Exceptions
Type Description
IOException

checkLockSettings()

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

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

Returns
Type Description
Builder<CheckLockRequest,Lock>

createCatalogSettings()

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

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

Returns
Type Description
Builder<CreateCatalogRequest,Catalog>

createDatabaseSettings()

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

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

Returns
Type Description
Builder<CreateDatabaseRequest,Database>

createLockSettings()

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

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

Returns
Type Description
Builder<CreateLockRequest,Lock>

createTableSettings()

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

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

Returns
Type Description
Builder<CreateTableRequest,Table>

deleteCatalogSettings()

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

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

Returns
Type Description
Builder<DeleteCatalogRequest,Catalog>

deleteDatabaseSettings()

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

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

Returns
Type Description
Builder<DeleteDatabaseRequest,Database>

deleteLockSettings()

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

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

Returns
Type Description
Builder<DeleteLockRequest,Empty>

deleteTableSettings()

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

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

Returns
Type Description
Builder<DeleteTableRequest,Table>

getCatalogSettings()

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

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

Returns
Type Description
Builder<GetCatalogRequest,Catalog>

getDatabaseSettings()

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

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

Returns
Type Description
Builder<GetDatabaseRequest,Database>

getStubSettingsBuilder()

public MetastoreServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
MetastoreServiceStubSettings.Builder

getTableSettings()

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

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

Returns
Type Description
Builder<GetTableRequest,Table>

listCatalogsSettings()

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

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Builder<ListTablesRequest,ListTablesResponse,ListTablesPagedResponse>

renameTableSettings()

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

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

Returns
Type Description
Builder<RenameTableRequest,Table>

updateDatabaseSettings()

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

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

Returns
Type Description
Builder<UpdateDatabaseRequest,Database>

updateTableSettings()

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

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

Returns
Type Description
Builder<UpdateTableRequest,Table>