Class TransformOperation

    • Method Detail

      • projectOperation

        public final ProjectOperation 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

        public final FilterOperation filterOperation()

        An operation that filters rows based on some condition.

        Returns:
        An operation that filters rows based on some condition.
      • createColumnsOperation

        public final CreateColumnsOperation 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

        public final RenameColumnOperation renameColumnOperation()

        An operation that renames a column.

        Returns:
        An operation that renames a column.
      • castColumnTypeOperation

        public final CastColumnTypeOperation 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

        public final TagColumnOperation tagColumnOperation()

        An operation that tags a column with additional information.

        Returns:
        An operation that tags a column with additional information.
      • untagColumnOperation

        public final UntagColumnOperation untagColumnOperation()
        Returns the value of the UntagColumnOperation property for this object.
        Returns:
        The value of the UntagColumnOperation property for this object.
      • overrideDatasetParameterOperation

        public final OverrideDatasetParameterOperation overrideDatasetParameterOperation()
        Returns the value of the OverrideDatasetParameterOperation property for this object.
        Returns:
        The value of the OverrideDatasetParameterOperation property for this object.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromProjectOperation

        public static TransformOperation fromProjectOperation​(ProjectOperation projectOperation)
        Create an instance of this class with projectOperation() 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 with projectOperation() 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

        public static TransformOperation fromFilterOperation​(FilterOperation filterOperation)
        Create an instance of this class with filterOperation() 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 with filterOperation() 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 with createColumnsOperation() 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 with createColumnsOperation() 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 with renameColumnOperation() 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 with castColumnTypeOperation() 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 with castColumnTypeOperation() 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

        public static TransformOperation fromTagColumnOperation​(TagColumnOperation tagColumnOperation)
        Create an instance of this class with tagColumnOperation() 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 with tagColumnOperation() 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 with untagColumnOperation() 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 with untagColumnOperation() 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 with overrideDatasetParameterOperation() 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 with overrideDatasetParameterOperation() 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.