A case class RawRowProjection that transforms a RawRow into another RawRow by selecting specific columns.
This transformation operates based on the specified indices of the columns to be kept. It selects the raw string values (ws) of the input RawRow corresponding to the provided indices and produces a new RawRow with the filtered data, while retaining the header from the input.
Value parameters
columns
A sequence of integers representing column indices to retain in the transformation.
Transforms a given RawRow into a new RawRow by selectively retaining columns based on the indices specified in the columns parameter of the enclosing RawRowProjection class.
Transforms a given RawRow into a new RawRow by selectively retaining columns based on the indices specified in the columns parameter of the enclosing RawRowProjection class.
For each value in the input row (r), if its corresponding column index exists in the columns sequence, it is included in the resulting RawRow. The header of the resulting RawRow remains unchanged.
Value parameters
r
the input RawRow containing a sequence of strings (ws) and a header (header).
Attributes
Returns
a new RawRow that contains only the filtered values as per the specified column indices and retains the original header from the input row.