Class TransformOperation
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<TransformOperation.Builder,
TransformOperation>
A data transformation on a logical table. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransformOperation.Builder
builder()
final CastColumnTypeOperation
A transform operation that casts a column to a different type.final CreateColumnsOperation
An operation that creates calculated columns.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final FilterOperation
An operation that filters rows based on some condition.static TransformOperation
fromCastColumnTypeOperation
(Consumer<CastColumnTypeOperation.Builder> castColumnTypeOperation) Create an instance of this class withcastColumnTypeOperation()
initialized to the given value.static TransformOperation
fromCastColumnTypeOperation
(CastColumnTypeOperation castColumnTypeOperation) Create an instance of this class withcastColumnTypeOperation()
initialized to the given value.static TransformOperation
fromCreateColumnsOperation
(Consumer<CreateColumnsOperation.Builder> createColumnsOperation) Create an instance of this class withcreateColumnsOperation()
initialized to the given value.static TransformOperation
fromCreateColumnsOperation
(CreateColumnsOperation createColumnsOperation) Create an instance of this class withcreateColumnsOperation()
initialized to the given value.static TransformOperation
fromFilterOperation
(Consumer<FilterOperation.Builder> filterOperation) Create an instance of this class withfilterOperation()
initialized to the given value.static TransformOperation
fromFilterOperation
(FilterOperation filterOperation) Create an instance of this class withfilterOperation()
initialized to the given value.static TransformOperation
fromOverrideDatasetParameterOperation
(Consumer<OverrideDatasetParameterOperation.Builder> overrideDatasetParameterOperation) Create an instance of this class withoverrideDatasetParameterOperation()
initialized to the given value.static TransformOperation
fromOverrideDatasetParameterOperation
(OverrideDatasetParameterOperation overrideDatasetParameterOperation) Create an instance of this class withoverrideDatasetParameterOperation()
initialized to the given value.static TransformOperation
fromProjectOperation
(Consumer<ProjectOperation.Builder> projectOperation) Create an instance of this class withprojectOperation()
initialized to the given value.static TransformOperation
fromProjectOperation
(ProjectOperation projectOperation) Create an instance of this class withprojectOperation()
initialized to the given value.static TransformOperation
fromRenameColumnOperation
(Consumer<RenameColumnOperation.Builder> renameColumnOperation) Create an instance of this class withrenameColumnOperation()
initialized to the given value.static TransformOperation
fromRenameColumnOperation
(RenameColumnOperation renameColumnOperation) Create an instance of this class withrenameColumnOperation()
initialized to the given value.static TransformOperation
fromTagColumnOperation
(Consumer<TagColumnOperation.Builder> tagColumnOperation) Create an instance of this class withtagColumnOperation()
initialized to the given value.static TransformOperation
fromTagColumnOperation
(TagColumnOperation tagColumnOperation) Create an instance of this class withtagColumnOperation()
initialized to the given value.static TransformOperation
fromUntagColumnOperation
(Consumer<UntagColumnOperation.Builder> untagColumnOperation) Create an instance of this class withuntagColumnOperation()
initialized to the given value.static TransformOperation
fromUntagColumnOperation
(UntagColumnOperation untagColumnOperation) Create an instance of this class withuntagColumnOperation()
initialized to the given value.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
Returns the value of the OverrideDatasetParameterOperation property for this object.final ProjectOperation
An operation that projects columns.final RenameColumnOperation
An operation that renames a column.static Class
<? extends TransformOperation.Builder> final TagColumnOperation
An operation that tags a column with additional information.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.type()
Retrieve an enum value representing which member of this object is populated.final UntagColumnOperation
Returns the value of the UntagColumnOperation property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
projectOperation
An operation that projects columns. Operations that come after a projection can only refer to projected columns.
- Returns:
- An operation that projects columns. Operations that come after a projection can only refer to projected columns.
-
filterOperation
An operation that filters rows based on some condition.
- Returns:
- An operation that filters rows based on some condition.
-
createColumnsOperation
An operation that creates calculated columns. Columns created in one such operation form a lexical closure.
- Returns:
- An operation that creates calculated columns. Columns created in one such operation form a lexical closure.
-
renameColumnOperation
An operation that renames a column.
- Returns:
- An operation that renames a column.
-
castColumnTypeOperation
A transform operation that casts a column to a different type.
- Returns:
- A transform operation that casts a column to a different type.
-
tagColumnOperation
An operation that tags a column with additional information.
- Returns:
- An operation that tags a column with additional information.
-
untagColumnOperation
Returns the value of the UntagColumnOperation property for this object.- Returns:
- The value of the UntagColumnOperation property for this object.
-
overrideDatasetParameterOperation
Returns the value of the OverrideDatasetParameterOperation property for this object.- Returns:
- The value of the OverrideDatasetParameterOperation property for this object.
-
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<TransformOperation.Builder,
TransformOperation> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int 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
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. -
getValueForField
-
fromProjectOperation
Create an instance of this class withprojectOperation()
initialized to the given value.An operation that projects columns. Operations that come after a projection can only refer to projected columns.
- Parameters:
projectOperation
- An operation that projects columns. Operations that come after a projection can only refer to projected columns.
-
fromProjectOperation
public static TransformOperation fromProjectOperation(Consumer<ProjectOperation.Builder> projectOperation) Create an instance of this class withprojectOperation()
initialized to the given value.An operation that projects columns. Operations that come after a projection can only refer to projected columns.
- Parameters:
projectOperation
- An operation that projects columns. Operations that come after a projection can only refer to projected columns.
-
fromFilterOperation
Create an instance of this class withfilterOperation()
initialized to the given value.An operation that filters rows based on some condition.
- Parameters:
filterOperation
- An operation that filters rows based on some condition.
-
fromFilterOperation
public static TransformOperation fromFilterOperation(Consumer<FilterOperation.Builder> filterOperation) Create an instance of this class withfilterOperation()
initialized to the given value.An operation that filters rows based on some condition.
- Parameters:
filterOperation
- An operation that filters rows based on some condition.
-
fromCreateColumnsOperation
public static TransformOperation fromCreateColumnsOperation(CreateColumnsOperation createColumnsOperation) Create an instance of this class withcreateColumnsOperation()
initialized to the given value.An operation that creates calculated columns. Columns created in one such operation form a lexical closure.
- Parameters:
createColumnsOperation
- An operation that creates calculated columns. Columns created in one such operation form a lexical closure.
-
fromCreateColumnsOperation
public static TransformOperation fromCreateColumnsOperation(Consumer<CreateColumnsOperation.Builder> createColumnsOperation) Create an instance of this class withcreateColumnsOperation()
initialized to the given value.An operation that creates calculated columns. Columns created in one such operation form a lexical closure.
- Parameters:
createColumnsOperation
- An operation that creates calculated columns. Columns created in one such operation form a lexical closure.
-
fromRenameColumnOperation
public static TransformOperation fromRenameColumnOperation(RenameColumnOperation renameColumnOperation) Create an instance of this class withrenameColumnOperation()
initialized to the given value.An operation that renames a column.
- Parameters:
renameColumnOperation
- An operation that renames a column.
-
fromRenameColumnOperation
public static TransformOperation fromRenameColumnOperation(Consumer<RenameColumnOperation.Builder> renameColumnOperation) Create an instance of this class withrenameColumnOperation()
initialized to the given value.An operation that renames a column.
- Parameters:
renameColumnOperation
- An operation that renames a column.
-
fromCastColumnTypeOperation
public static TransformOperation fromCastColumnTypeOperation(CastColumnTypeOperation castColumnTypeOperation) Create an instance of this class withcastColumnTypeOperation()
initialized to the given value.A transform operation that casts a column to a different type.
- Parameters:
castColumnTypeOperation
- A transform operation that casts a column to a different type.
-
fromCastColumnTypeOperation
public static TransformOperation fromCastColumnTypeOperation(Consumer<CastColumnTypeOperation.Builder> castColumnTypeOperation) Create an instance of this class withcastColumnTypeOperation()
initialized to the given value.A transform operation that casts a column to a different type.
- Parameters:
castColumnTypeOperation
- A transform operation that casts a column to a different type.
-
fromTagColumnOperation
Create an instance of this class withtagColumnOperation()
initialized to the given value.An operation that tags a column with additional information.
- Parameters:
tagColumnOperation
- An operation that tags a column with additional information.
-
fromTagColumnOperation
public static TransformOperation fromTagColumnOperation(Consumer<TagColumnOperation.Builder> tagColumnOperation) Create an instance of this class withtagColumnOperation()
initialized to the given value.An operation that tags a column with additional information.
- Parameters:
tagColumnOperation
- An operation that tags a column with additional information.
-
fromUntagColumnOperation
public static TransformOperation fromUntagColumnOperation(UntagColumnOperation untagColumnOperation) Create an instance of this class withuntagColumnOperation()
initialized to the given value. Sets the value of the UntagColumnOperation property for this object.- Parameters:
untagColumnOperation
- The new value for the UntagColumnOperation property for this object.
-
fromUntagColumnOperation
public static TransformOperation fromUntagColumnOperation(Consumer<UntagColumnOperation.Builder> untagColumnOperation) Create an instance of this class withuntagColumnOperation()
initialized to the given value. Sets the value of the UntagColumnOperation property for this object.- Parameters:
untagColumnOperation
- The new value for the UntagColumnOperation property for this object.
-
fromOverrideDatasetParameterOperation
public static TransformOperation fromOverrideDatasetParameterOperation(OverrideDatasetParameterOperation overrideDatasetParameterOperation) Create an instance of this class withoverrideDatasetParameterOperation()
initialized to the given value. Sets the value of the OverrideDatasetParameterOperation property for this object.- Parameters:
overrideDatasetParameterOperation
- The new value for the OverrideDatasetParameterOperation property for this object.
-
fromOverrideDatasetParameterOperation
public static TransformOperation fromOverrideDatasetParameterOperation(Consumer<OverrideDatasetParameterOperation.Builder> overrideDatasetParameterOperation) Create an instance of this class withoverrideDatasetParameterOperation()
initialized to the given value. Sets the value of the OverrideDatasetParameterOperation property for this object.- Parameters:
overrideDatasetParameterOperation
- The new value for the OverrideDatasetParameterOperation property for this object.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beTransformOperation.Type.UNKNOWN_TO_SDK_VERSION
if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beTransformOperation.Type.UNKNOWN_TO_SDK_VERSION
if zero members are set, andnull
if more than one member is set. -
sdkFields
-