Class MetastoreServiceSettings.Builder (0.4.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
NameDescription
clientContextClientContext

Builder(MetastoreServiceSettings settings)

protected Builder(MetastoreServiceSettings settings)
Parameter
NameDescription
settingsMetastoreServiceSettings

Builder(MetastoreServiceStubSettings.Builder stubSettings)

protected Builder(MetastoreServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsMetastoreServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
MetastoreServiceSettings.Builder

build()

public MetastoreServiceSettings build()
Returns
TypeDescription
MetastoreServiceSettings
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>

getStubSettingsBuilder()

public MetastoreServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
MetastoreServiceStubSettings.Builder

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>

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>