Class MigrationPolicies
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MigrationPolicies.Builder,MigrationPolicies>
The policies for source data that doesn't fit the destination schema.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MigrationPolicies.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IncompatibleValuesPolicyThe migration policy for a source value that the destination column's type can't hold.final StringThe migration policy for a source value that the destination column's type can't hold.static Class<? extends MigrationPolicies.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.The migration policy for a source field that has no matching column in the destination schema.final StringThe migration policy for a source field that has no matching column in the destination schema.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
unmatchedSourceFieldsPolicy
The migration policy for a source field that has no matching column in the destination schema. Valid values:
-
fail- Fails the migration. Source objects under the table location that no Amazon Web Services Glue partition references, including objects in a subdirectory of an unpartitioned table, also fail the migration. This is the default. -
drop- Leaves source columns that the destination schema doesn't have out of the destination table, and doesn't migrate source objects outside the Amazon Web Services Glue table's partition locations.
A destination schema that leaves out a partition column or a field of a struct column fails the migration under either value.
If the service returns an enum value that is not available in the current SDK version,
unmatchedSourceFieldsPolicywill returnUnmatchedSourceFieldsPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunmatchedSourceFieldsPolicyAsString().- Returns:
- The migration policy for a source field that has no matching column in the destination schema. Valid
values:
-
fail- Fails the migration. Source objects under the table location that no Amazon Web Services Glue partition references, including objects in a subdirectory of an unpartitioned table, also fail the migration. This is the default. -
drop- Leaves source columns that the destination schema doesn't have out of the destination table, and doesn't migrate source objects outside the Amazon Web Services Glue table's partition locations.
A destination schema that leaves out a partition column or a field of a struct column fails the migration under either value.
-
- See Also:
-
-
unmatchedSourceFieldsPolicyAsString
The migration policy for a source field that has no matching column in the destination schema. Valid values:
-
fail- Fails the migration. Source objects under the table location that no Amazon Web Services Glue partition references, including objects in a subdirectory of an unpartitioned table, also fail the migration. This is the default. -
drop- Leaves source columns that the destination schema doesn't have out of the destination table, and doesn't migrate source objects outside the Amazon Web Services Glue table's partition locations.
A destination schema that leaves out a partition column or a field of a struct column fails the migration under either value.
If the service returns an enum value that is not available in the current SDK version,
unmatchedSourceFieldsPolicywill returnUnmatchedSourceFieldsPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunmatchedSourceFieldsPolicyAsString().- Returns:
- The migration policy for a source field that has no matching column in the destination schema. Valid
values:
-
fail- Fails the migration. Source objects under the table location that no Amazon Web Services Glue partition references, including objects in a subdirectory of an unpartitioned table, also fail the migration. This is the default. -
drop- Leaves source columns that the destination schema doesn't have out of the destination table, and doesn't migrate source objects outside the Amazon Web Services Glue table's partition locations.
A destination schema that leaves out a partition column or a field of a struct column fails the migration under either value.
-
- See Also:
-
-
incompatibleValuesPolicy
The migration policy for a source value that the destination column's type can't hold. Valid values:
-
fail- Fails the migration. This is the default. -
setNull- Writes null for a value that the destination column's type can't hold. If a column's or nested field's type in a source object is incompatible with the destination type, that column or field is null for that whole object.
A value that would be written as null in a required column, or a type that migration doesn't support, fails the migration under either value.
If the service returns an enum value that is not available in the current SDK version,
incompatibleValuesPolicywill returnIncompatibleValuesPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromincompatibleValuesPolicyAsString().- Returns:
- The migration policy for a source value that the destination column's type can't hold. Valid values:
-
fail- Fails the migration. This is the default. -
setNull- Writes null for a value that the destination column's type can't hold. If a column's or nested field's type in a source object is incompatible with the destination type, that column or field is null for that whole object.
A value that would be written as null in a required column, or a type that migration doesn't support, fails the migration under either value.
-
- See Also:
-
-
incompatibleValuesPolicyAsString
The migration policy for a source value that the destination column's type can't hold. Valid values:
-
fail- Fails the migration. This is the default. -
setNull- Writes null for a value that the destination column's type can't hold. If a column's or nested field's type in a source object is incompatible with the destination type, that column or field is null for that whole object.
A value that would be written as null in a required column, or a type that migration doesn't support, fails the migration under either value.
If the service returns an enum value that is not available in the current SDK version,
incompatibleValuesPolicywill returnIncompatibleValuesPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromincompatibleValuesPolicyAsString().- Returns:
- The migration policy for a source value that the destination column's type can't hold. Valid values:
-
fail- Fails the migration. This is the default. -
setNull- Writes null for a value that the destination column's type can't hold. If a column's or nested field's type in a source object is incompatible with the destination type, that column or field is null for that whole object.
A value that would be written as null in a required column, or a type that migration doesn't support, fails the migration under either value.
-
- See Also:
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<MigrationPolicies.Builder,MigrationPolicies> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-