Class IntegrationPartition
- java.lang.Object
-
- software.amazon.awssdk.services.glue.model.IntegrationPartition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<IntegrationPartition.Builder,IntegrationPartition>
@Generated("software.amazon.awssdk:codegen") public final class IntegrationPartition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IntegrationPartition.Builder,IntegrationPartition>
A structure that describes how data is partitioned on the target.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIntegrationPartition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IntegrationPartition.Builderbuilder()StringconversionSpec()Specifies the timestamp format of the source data.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfieldName()The field name used to partition data on the target.StringfunctionSpec()Specifies the function used to partition data on the target.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends IntegrationPartition.Builder>serializableBuilderClass()IntegrationPartition.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
fieldName
public final String fieldName()
The field name used to partition data on the target. Avoid using columns that have unique values for each row (for example, `LastModifiedTimestamp`, `SystemModTimeStamp`) as the partition column. These columns are not suitable for partitioning because they create a large number of small partitions, which can lead to performance issues.
- Returns:
- The field name used to partition data on the target. Avoid using columns that have unique values for each row (for example, `LastModifiedTimestamp`, `SystemModTimeStamp`) as the partition column. These columns are not suitable for partitioning because they create a large number of small partitions, which can lead to performance issues.
-
functionSpec
public final String functionSpec()
Specifies the function used to partition data on the target. The only accepted value for this parameter is `'identity'` (string). The `'identity'` function ensures that the data partitioning on the target follows the same scheme as the source. In other words, the partitioning structure of the source data is preserved in the target destination.
- Returns:
- Specifies the function used to partition data on the target. The only accepted value for this parameter is `'identity'` (string). The `'identity'` function ensures that the data partitioning on the target follows the same scheme as the source. In other words, the partitioning structure of the source data is preserved in the target destination.
-
conversionSpec
public final String conversionSpec()
Specifies the timestamp format of the source data. Valid values are:
-
epoch_sec- Unix epoch timestamp in seconds -
epoch_milli- Unix epoch timestamp in milliseconds -
iso- ISO 8601 formatted timestamp
Only specify
ConversionSpecwhen using timestamp-based partition functions (year, month, day, or hour). Glue Zero-ETL uses this parameter to correctly transform source data into timestamp format before partitioning.Do not use high-cardinality columns with the
identitypartition function. High-cardinality columns include:-
Primary keys
-
Timestamp fields (such as
LastModifiedTimestamp,CreatedDate) -
System-generated timestamps
Using high-cardinality columns with identity partitioning creates many small partitions, which can significantly degrade ingestion performance.
- Returns:
- Specifies the timestamp format of the source data. Valid values are:
-
epoch_sec- Unix epoch timestamp in seconds -
epoch_milli- Unix epoch timestamp in milliseconds -
iso- ISO 8601 formatted timestamp
Only specify
ConversionSpecwhen using timestamp-based partition functions (year, month, day, or hour). Glue Zero-ETL uses this parameter to correctly transform source data into timestamp format before partitioning.Do not use high-cardinality columns with the
identitypartition function. High-cardinality columns include:-
Primary keys
-
Timestamp fields (such as
LastModifiedTimestamp,CreatedDate) -
System-generated timestamps
Using high-cardinality columns with identity partitioning creates many small partitions, which can significantly degrade ingestion performance.
-
-
-
toBuilder
public IntegrationPartition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<IntegrationPartition.Builder,IntegrationPartition>
-
builder
public static IntegrationPartition.Builder builder()
-
serializableBuilderClass
public static Class<? extends IntegrationPartition.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
-
-