Interface DataLakeDatasetPartitionField.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DataLakeDatasetPartitionField.Builder,
,DataLakeDatasetPartitionField> SdkBuilder<DataLakeDatasetPartitionField.Builder,
,DataLakeDatasetPartitionField> SdkPojo
- Enclosing class:
DataLakeDatasetPartitionField
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the partition field.The transformation of the partition field.transform
(DataLakeDatasetPartitionFieldTransform transform) The transformation of the partition field.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, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the partition field.
- Parameters:
name
- The name of the partition field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transform
The transformation of the partition field. A transformation specifies how to partition on a given field. For example, with timestamp you can specify that you'd like to partition fields by day, e.g. data record with value 2025-01-03T00:00:00Z in partition field is in 2025-01-03 partition. Also noted that data record without any value in optional partition field is in NULL partition.
- Parameters:
transform
- The transformation of the partition field. A transformation specifies how to partition on a given field. For example, with timestamp you can specify that you'd like to partition fields by day, e.g. data record with value 2025-01-03T00:00:00Z in partition field is in 2025-01-03 partition. Also noted that data record without any value in optional partition field is in NULL partition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transform
default DataLakeDatasetPartitionField.Builder transform(Consumer<DataLakeDatasetPartitionFieldTransform.Builder> transform) The transformation of the partition field. A transformation specifies how to partition on a given field. For example, with timestamp you can specify that you'd like to partition fields by day, e.g. data record with value 2025-01-03T00:00:00Z in partition field is in 2025-01-03 partition. Also noted that data record without any value in optional partition field is in NULL partition.
This is a convenience method that creates an instance of theDataLakeDatasetPartitionFieldTransform.Builder
avoiding the need to create one manually viaDataLakeDatasetPartitionFieldTransform.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totransform(DataLakeDatasetPartitionFieldTransform)
.- Parameters:
transform
- a consumer that will call methods onDataLakeDatasetPartitionFieldTransform.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-