public static interface Database.Builder extends SdkPojo, CopyableBuilder<Database.Builder,Database>
| Modifier and Type | Method and Description |
|---|---|
Database.Builder |
catalogId(String catalogId)
The ID of the Data Catalog in which the database resides.
|
Database.Builder |
createTableDefaultPermissions(Collection<PrincipalPermissions> createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
|
Database.Builder |
createTableDefaultPermissions(Consumer<PrincipalPermissions.Builder>... createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
|
Database.Builder |
createTableDefaultPermissions(PrincipalPermissions... createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
|
Database.Builder |
createTime(Instant createTime)
The time at which the metadata database was created in the catalog.
|
Database.Builder |
description(String description)
A description of the database.
|
Database.Builder |
locationUri(String locationUri)
The location of the database (for example, an HDFS path).
|
Database.Builder |
name(String name)
The name of the database.
|
Database.Builder |
parameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
|
default Database.Builder |
targetDatabase(Consumer<DatabaseIdentifier.Builder> targetDatabase)
A
DatabaseIdentifier structure that describes a target database for resource linking. |
Database.Builder |
targetDatabase(DatabaseIdentifier targetDatabase)
A
DatabaseIdentifier structure that describes a target database for resource linking. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDatabase.Builder name(String name)
The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
name - The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.Database.Builder description(String description)
A description of the database.
description - A description of the database.Database.Builder locationUri(String locationUri)
The location of the database (for example, an HDFS path).
locationUri - The location of the database (for example, an HDFS path).Database.Builder parameters(Map<String,String> parameters)
These key-value pairs define parameters and properties of the database.
parameters - These key-value pairs define parameters and properties of the database.Database.Builder createTime(Instant createTime)
The time at which the metadata database was created in the catalog.
createTime - The time at which the metadata database was created in the catalog.Database.Builder createTableDefaultPermissions(Collection<PrincipalPermissions> createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
createTableDefaultPermissions - Creates a set of default permissions on the table for principals.Database.Builder createTableDefaultPermissions(PrincipalPermissions... createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
createTableDefaultPermissions - Creates a set of default permissions on the table for principals.Database.Builder createTableDefaultPermissions(Consumer<PrincipalPermissions.Builder>... createTableDefaultPermissions)
Creates a set of default permissions on the table for principals.
This is a convenience method that creates an instance of thePrincipalPermissions.Builder avoiding the need to create
one manually via PrincipalPermissions.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #createTableDefaultPermissions(List.
createTableDefaultPermissions - a consumer that will call methods on
PrincipalPermissions.Builder#createTableDefaultPermissions(java.util.Collection) Database.Builder targetDatabase(DatabaseIdentifier targetDatabase)
A DatabaseIdentifier structure that describes a target database for resource linking.
targetDatabase - A DatabaseIdentifier structure that describes a target database for resource linking.default Database.Builder targetDatabase(Consumer<DatabaseIdentifier.Builder> targetDatabase)
A DatabaseIdentifier structure that describes a target database for resource linking.
DatabaseIdentifier.Builder avoiding the
need to create one manually via DatabaseIdentifier.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to targetDatabase(DatabaseIdentifier).
targetDatabase - a consumer that will call methods on DatabaseIdentifier.BuildertargetDatabase(DatabaseIdentifier)Database.Builder catalogId(String catalogId)
The ID of the Data Catalog in which the database resides.
catalogId - The ID of the Data Catalog in which the database resides.Copyright © 2022. All rights reserved.