#[non_exhaustive]pub enum TransformOperation {
CastColumnTypeOperation(CastColumnTypeOperation),
CreateColumnsOperation(CreateColumnsOperation),
FilterOperation(FilterOperation),
OverrideDatasetParameterOperation(OverrideDatasetParameterOperation),
ProjectOperation(ProjectOperation),
RenameColumnOperation(RenameColumnOperation),
TagColumnOperation(TagColumnOperation),
UntagColumnOperation(UntagColumnOperation),
Unknown,
}
Expand description
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.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CastColumnTypeOperation(CastColumnTypeOperation)
A transform operation that casts a column to a different type.
CreateColumnsOperation(CreateColumnsOperation)
An operation that creates calculated columns. Columns created in one such operation form a lexical closure.
FilterOperation(FilterOperation)
An operation that filters rows based on some condition.
OverrideDatasetParameterOperation(OverrideDatasetParameterOperation)
A transform operation that overrides the dataset parameter values that are defined in another dataset.
ProjectOperation(ProjectOperation)
An operation that projects columns. Operations that come after a projection can only refer to projected columns.
RenameColumnOperation(RenameColumnOperation)
An operation that renames a column.
TagColumnOperation(TagColumnOperation)
An operation that tags a column with additional information.
UntagColumnOperation(UntagColumnOperation)
A transform operation that removes tags associated with a column.
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl TransformOperation
impl TransformOperation
sourcepub fn as_cast_column_type_operation(
&self
) -> Result<&CastColumnTypeOperation, &Self>
pub fn as_cast_column_type_operation( &self ) -> Result<&CastColumnTypeOperation, &Self>
Tries to convert the enum instance into CastColumnTypeOperation
, extracting the inner CastColumnTypeOperation
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_cast_column_type_operation(&self) -> bool
pub fn is_cast_column_type_operation(&self) -> bool
Returns true if this is a CastColumnTypeOperation
.
sourcepub fn as_create_columns_operation(
&self
) -> Result<&CreateColumnsOperation, &Self>
pub fn as_create_columns_operation( &self ) -> Result<&CreateColumnsOperation, &Self>
Tries to convert the enum instance into CreateColumnsOperation
, extracting the inner CreateColumnsOperation
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_create_columns_operation(&self) -> bool
pub fn is_create_columns_operation(&self) -> bool
Returns true if this is a CreateColumnsOperation
.
sourcepub fn as_filter_operation(&self) -> Result<&FilterOperation, &Self>
pub fn as_filter_operation(&self) -> Result<&FilterOperation, &Self>
Tries to convert the enum instance into FilterOperation
, extracting the inner FilterOperation
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_filter_operation(&self) -> bool
pub fn is_filter_operation(&self) -> bool
Returns true if this is a FilterOperation
.
sourcepub fn as_override_dataset_parameter_operation(
&self
) -> Result<&OverrideDatasetParameterOperation, &Self>
pub fn as_override_dataset_parameter_operation( &self ) -> Result<&OverrideDatasetParameterOperation, &Self>
Tries to convert the enum instance into OverrideDatasetParameterOperation
, extracting the inner OverrideDatasetParameterOperation
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_override_dataset_parameter_operation(&self) -> bool
pub fn is_override_dataset_parameter_operation(&self) -> bool
Returns true if this is a OverrideDatasetParameterOperation
.
sourcepub fn as_project_operation(&self) -> Result<&ProjectOperation, &Self>
pub fn as_project_operation(&self) -> Result<&ProjectOperation, &Self>
Tries to convert the enum instance into ProjectOperation
, extracting the inner ProjectOperation
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_project_operation(&self) -> bool
pub fn is_project_operation(&self) -> bool
Returns true if this is a ProjectOperation
.
sourcepub fn as_rename_column_operation(
&self
) -> Result<&RenameColumnOperation, &Self>
pub fn as_rename_column_operation( &self ) -> Result<&RenameColumnOperation, &Self>
Tries to convert the enum instance into RenameColumnOperation
, extracting the inner RenameColumnOperation
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_rename_column_operation(&self) -> bool
pub fn is_rename_column_operation(&self) -> bool
Returns true if this is a RenameColumnOperation
.
sourcepub fn as_tag_column_operation(&self) -> Result<&TagColumnOperation, &Self>
pub fn as_tag_column_operation(&self) -> Result<&TagColumnOperation, &Self>
Tries to convert the enum instance into TagColumnOperation
, extracting the inner TagColumnOperation
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_tag_column_operation(&self) -> bool
pub fn is_tag_column_operation(&self) -> bool
Returns true if this is a TagColumnOperation
.
sourcepub fn as_untag_column_operation(&self) -> Result<&UntagColumnOperation, &Self>
pub fn as_untag_column_operation(&self) -> Result<&UntagColumnOperation, &Self>
Tries to convert the enum instance into UntagColumnOperation
, extracting the inner UntagColumnOperation
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_untag_column_operation(&self) -> bool
pub fn is_untag_column_operation(&self) -> bool
Returns true if this is a UntagColumnOperation
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
source§impl Clone for TransformOperation
impl Clone for TransformOperation
source§fn clone(&self) -> TransformOperation
fn clone(&self) -> TransformOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransformOperation
impl Debug for TransformOperation
source§impl PartialEq for TransformOperation
impl PartialEq for TransformOperation
source§fn eq(&self, other: &TransformOperation) -> bool
fn eq(&self, other: &TransformOperation) -> bool
self
and other
values to be equal, and is used
by ==
.