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.

Linear Supertypes
Serializable, Product, Equals, Transformation[RawRow, RawRow], (RawRow) => RawRow, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RawRowProjection
  2. Serializable
  3. Product
  4. Equals
  5. Transformation
  6. Function1
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RawRowProjection(columns: Seq[Int])

    columns

    A sequence of integers representing column indices to retain in the transformation.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (RawRow) => A): (RawRow) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(r: RawRow): RawRow

    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.

    r

    the input RawRow containing a sequence of strings (ws) and a header (header).

    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.

    Definition Classes
    RawRowProjection → Function1
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. val columns: Seq[Int]
  9. def compose[A](g: (A) => RawRow): (A) => RawRow
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def productElementNames: Iterator[String]
    Definition Classes
    Product
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Transformation[RawRow, RawRow]

Inherited from (RawRow) => RawRow

Inherited from AnyRef

Inherited from Any

Ungrouped