Class IntegrationPartition
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<IntegrationPartition.Builder,
IntegrationPartition>
A structure that describes how data is partitioned on the target.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegrationPartition.Builder
builder()
final String
Specifies the timestamp format of the source data.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
The field name used to partition data on the target.final String
Specifies the function used to partition data on the target.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
static Class
<? extends IntegrationPartition.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
Specifies the function used to partition data on the target. The accepted values for this parameter are:
-
identity
- Uses source values directly without transformation -
year
- Extracts the year from timestamp values (e.g., 2023) -
month
- Extracts the month from timestamp values (e.g., 2023-01) -
day
- Extracts the day from timestamp values (e.g., 2023-01-15) -
hour
- Extracts the hour from timestamp values (e.g., 2023-01-15-14)
- Returns:
- Specifies the function used to partition data on the target. The accepted values for this parameter
are:
-
identity
- Uses source values directly without transformation -
year
- Extracts the year from timestamp values (e.g., 2023) -
month
- Extracts the month from timestamp values (e.g., 2023-01) -
day
- Extracts the day from timestamp values (e.g., 2023-01-15) -
hour
- Extracts the hour from timestamp values (e.g., 2023-01-15-14)
-
-
-
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
ConversionSpec
when 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
identity
partition 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
ConversionSpec
when 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
identity
partition 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
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<IntegrationPartition.Builder,
IntegrationPartition> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-