Interface Partition.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<Partition.Builder,Partition>
,SdkBuilder<Partition.Builder,Partition>
,SdkPojo
- Enclosing class:
- Partition
public static interface Partition.Builder extends SdkPojo, CopyableBuilder<Partition.Builder,Partition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Partition.Builder
catalogId(String catalogId)
The ID of the Data Catalog in which the partition resides.Partition.Builder
creationTime(Instant creationTime)
The time at which the partition was created.Partition.Builder
databaseName(String databaseName)
The name of the catalog database in which to create the partition.Partition.Builder
lastAccessTime(Instant lastAccessTime)
The last time at which the partition was accessed.Partition.Builder
lastAnalyzedTime(Instant lastAnalyzedTime)
The last time at which column statistics were computed for this partition.Partition.Builder
parameters(Map<String,String> parameters)
These key-value pairs define partition parameters.default Partition.Builder
storageDescriptor(Consumer<StorageDescriptor.Builder> storageDescriptor)
Provides information about the physical location where the partition is stored.Partition.Builder
storageDescriptor(StorageDescriptor storageDescriptor)
Provides information about the physical location where the partition is stored.Partition.Builder
tableName(String tableName)
The name of the database table in which to create the partition.Partition.Builder
values(String... values)
The values of the partition.Partition.Builder
values(Collection<String> values)
The values of the partition.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
values
Partition.Builder values(Collection<String> values)
The values of the partition.
- Parameters:
values
- The values of the partition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
Partition.Builder values(String... values)
The values of the partition.
- Parameters:
values
- The values of the partition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
databaseName
Partition.Builder databaseName(String databaseName)
The name of the catalog database in which to create the partition.
- Parameters:
databaseName
- The name of the catalog database in which to create the partition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableName
Partition.Builder tableName(String tableName)
The name of the database table in which to create the partition.
- Parameters:
tableName
- The name of the database table in which to create the partition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
Partition.Builder creationTime(Instant creationTime)
The time at which the partition was created.
- Parameters:
creationTime
- The time at which the partition was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastAccessTime
Partition.Builder lastAccessTime(Instant lastAccessTime)
The last time at which the partition was accessed.
- Parameters:
lastAccessTime
- The last time at which the partition was accessed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageDescriptor
Partition.Builder storageDescriptor(StorageDescriptor storageDescriptor)
Provides information about the physical location where the partition is stored.
- Parameters:
storageDescriptor
- Provides information about the physical location where the partition is stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageDescriptor
default Partition.Builder storageDescriptor(Consumer<StorageDescriptor.Builder> storageDescriptor)
Provides information about the physical location where the partition is stored.
This is a convenience method that creates an instance of theStorageDescriptor.Builder
avoiding the need to create one manually viaStorageDescriptor.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostorageDescriptor(StorageDescriptor)
.- Parameters:
storageDescriptor
- a consumer that will call methods onStorageDescriptor.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
storageDescriptor(StorageDescriptor)
-
parameters
Partition.Builder parameters(Map<String,String> parameters)
These key-value pairs define partition parameters.
- Parameters:
parameters
- These key-value pairs define partition parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastAnalyzedTime
Partition.Builder lastAnalyzedTime(Instant lastAnalyzedTime)
The last time at which column statistics were computed for this partition.
- Parameters:
lastAnalyzedTime
- The last time at which column statistics were computed for this partition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
catalogId
Partition.Builder catalogId(String catalogId)
The ID of the Data Catalog in which the partition resides.
- Parameters:
catalogId
- The ID of the Data Catalog in which the partition resides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-