Class IcebergPartitionField
- java.lang.Object
-
- software.amazon.awssdk.services.glue.model.IcebergPartitionField
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<IcebergPartitionField.Builder,IcebergPartitionField>
@Generated("software.amazon.awssdk:codegen") public final class IcebergPartitionField extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IcebergPartitionField.Builder,IcebergPartitionField>
Defines a single partition field within an Iceberg partition specification, including the source field, transformation function, partition name, and unique identifier.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIcebergPartitionField.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IcebergPartitionField.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)IntegerfieldId()The unique identifier assigned to this partition field within the Iceberg table's partition specification.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the partition field as it will appear in the partitioned table structure.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends IcebergPartitionField.Builder>serializableBuilderClass()IntegersourceId()The identifier of the source field from the table schema that this partition field is based on.IcebergPartitionField.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringtransform()The transformation function applied to the source field to create the partition, such as identity, bucket, truncate, year, month, day, or hour.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
sourceId
public final Integer sourceId()
The identifier of the source field from the table schema that this partition field is based on.
- Returns:
- The identifier of the source field from the table schema that this partition field is based on.
-
transform
public final String transform()
The transformation function applied to the source field to create the partition, such as identity, bucket, truncate, year, month, day, or hour.
- Returns:
- The transformation function applied to the source field to create the partition, such as identity, bucket, truncate, year, month, day, or hour.
-
name
public final String name()
The name of the partition field as it will appear in the partitioned table structure.
- Returns:
- The name of the partition field as it will appear in the partitioned table structure.
-
fieldId
public final Integer fieldId()
The unique identifier assigned to this partition field within the Iceberg table's partition specification.
- Returns:
- The unique identifier assigned to this partition field within the Iceberg table's partition specification.
-
toBuilder
public IcebergPartitionField.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<IcebergPartitionField.Builder,IcebergPartitionField>
-
builder
public static IcebergPartitionField.Builder builder()
-
serializableBuilderClass
public static Class<? extends IcebergPartitionField.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-