case class RawRowProjection(columns: Seq[Int]) extends Transformation[RawRow, RawRow] with Product with Serializable
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.
- columns
A sequence of integers representing column indices to retain in the transformation.
- Alphabetic
- By Inheritance
- RawRowProjection
- Serializable
- Product
- Equals
- Transformation
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RawRowProjection(columns: Seq[Int])
- columns
A sequence of integers representing column indices to retain in the transformation.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[A](g: (RawRow) => A): (RawRow) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def apply(r: RawRow): RawRow
Transforms a given
RawRowinto a newRawRowby selectively retaining columns based on the indices specified in thecolumnsparameter of the enclosingRawRowProjectionclass.Transforms a given
RawRowinto a newRawRowby selectively retaining columns based on the indices specified in thecolumnsparameter of the enclosingRawRowProjectionclass.For each value in the input row (
r), if its corresponding column index exists in thecolumnssequence, it is included in the resultingRawRow. The header of the resultingRawRowremains unchanged.- r
the input
RawRowcontaining a sequence of strings (ws) and a header (header).- returns
a new
RawRowthat contains only the filtered values as per the specified column indices and retains the original header from the input row.
- Definition Classes
- RawRowProjection → Function1
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val columns: Seq[Int]
- def compose[A](g: (A) => RawRow): (A) => RawRow
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)