RawTableProjection

com.phasmidsoftware.tableparser.core.table.RawTableProjection
case class RawTableProjection(columns: Seq[String]) extends Transformation[RawTable, RawTable]

A transformation that projects a subset of columns from a RawTable based on the specified column names.

The RawTableProjection class allows users to specify column names, and it produces a new RawTable containing only these columns. Internally, it determines the indices of the specified columns and applies the projection at the row level by retaining only the corresponding values.

Value parameters

columns

A sequence of column names to include in the resulting table.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait RawTable => RawTable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Applies a projection to a RawTable based on the specified column names.

Applies a projection to a RawTable based on the specified column names.

This method selects a subset of columns from the input RawTable and returns a new RawTable containing only the specified columns. The projection is based on the column names provided during the construction of the RawTableProjection.

Value parameters

t

the input RawTable to which the transformation will be applied.

Attributes

Returns

a new RawTable containing only the columns specified by the columns parameter of the parent RawTableProjection class, in the same order as provided.

Inherited methods

def andThen[A](g: RawTable => A): RawTable => A

Composes two instances of Function1 in a new Function1, with this function applied first.

Composes two instances of Function1 in a new Function1, with this function applied first.

Type parameters

A

the result type of function g

Value parameters

g

a function R => A

Attributes

Returns

a new function f such that f(x) == g(apply(x))

Inherited from:
Function1
def compose[A](g: A => RawTable): A => RawTable

Composes two instances of Function1 in a new Function1, with this function applied last.

Composes two instances of Function1 in a new Function1, with this function applied last.

Type parameters

A

the type to which function g can be applied

Value parameters

g

a function A => T1

Attributes

Returns

a new function f such that f(x) == apply(g(x))

Inherited from:
Function1
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1