Interface UnpivotOperation.Builder

  • Method Details

    • alias

      Alias for this operation.

      Parameters:
      alias - Alias for this operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      The source transform operation that provides input data for unpivoting.

      Parameters:
      source - The source transform operation that provides input data for unpivoting.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      The source transform operation that provides input data for unpivoting.

      This is a convenience method that creates an instance of the TransformOperationSource.Builder avoiding the need to create one manually via TransformOperationSource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to source(TransformOperationSource).

      Parameters:
      source - a consumer that will call methods on TransformOperationSource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • columnsToUnpivot

      UnpivotOperation.Builder columnsToUnpivot(Collection<ColumnToUnpivot> columnsToUnpivot)

      The list of columns to unpivot from the source data.

      Parameters:
      columnsToUnpivot - The list of columns to unpivot from the source data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • columnsToUnpivot

      UnpivotOperation.Builder columnsToUnpivot(ColumnToUnpivot... columnsToUnpivot)

      The list of columns to unpivot from the source data.

      Parameters:
      columnsToUnpivot - The list of columns to unpivot from the source data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • columnsToUnpivot

      UnpivotOperation.Builder columnsToUnpivot(Consumer<ColumnToUnpivot.Builder>... columnsToUnpivot)

      The list of columns to unpivot from the source data.

      This is a convenience method that creates an instance of the ColumnToUnpivot.Builder avoiding the need to create one manually via ColumnToUnpivot.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to columnsToUnpivot(List<ColumnToUnpivot>).

      Parameters:
      columnsToUnpivot - a consumer that will call methods on ColumnToUnpivot.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • unpivotedLabelColumnName

      UnpivotOperation.Builder unpivotedLabelColumnName(String unpivotedLabelColumnName)

      The name for the new column that will contain the unpivoted column names.

      Parameters:
      unpivotedLabelColumnName - The name for the new column that will contain the unpivoted column names.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unpivotedLabelColumnId

      UnpivotOperation.Builder unpivotedLabelColumnId(String unpivotedLabelColumnId)

      A unique identifier for the new column that will contain the unpivoted column names.

      Parameters:
      unpivotedLabelColumnId - A unique identifier for the new column that will contain the unpivoted column names.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unpivotedValueColumnName

      UnpivotOperation.Builder unpivotedValueColumnName(String unpivotedValueColumnName)

      The name for the new column that will contain the unpivoted values.

      Parameters:
      unpivotedValueColumnName - The name for the new column that will contain the unpivoted values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unpivotedValueColumnId

      UnpivotOperation.Builder unpivotedValueColumnId(String unpivotedValueColumnId)

      A unique identifier for the new column that will contain the unpivoted values.

      Parameters:
      unpivotedValueColumnId - A unique identifier for the new column that will contain the unpivoted values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.