fi.pelam.csv.table

TableProjection

case class TableProjection[RT, CT, M <: TableMetadata](baseTable: Table[RT, CT, M], rows: SortedSet[RowKey] = SortedSet(), cols: SortedSet[ColKey] = SortedSet()) extends Product with Serializable

Part of the API to "project" a Table. Idea is to pick rows and columns in an fluent and immutable way, and then get a table with just the selected rows and columns. This is useful for example just displaying or logging certain data.

Example:

import TableProjection._ // Import implicit toTable and toProjection

val table: Table = ...
println(table.withColTypes(Name, Price).withRowTypes(Item))

// The inverse may also be useful for removing some data

println(table.withColTypes(Comments).inverse)
Source
TableProjection.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TableProjection
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TableProjection(baseTable: Table[RT, CT, M], rows: SortedSet[RowKey] = SortedSet(), cols: SortedSet[ColKey] = SortedSet())

Type Members

  1. type Projection = TableProjection[RT, CT, M]

  2. type TableType = Table[RT, CT, M]

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 all: Projection

  5. def allCols: Projection

  6. def allRows: Projection

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val baseTable: Table[RT, CT, M]

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def cols(transform: (SortedSet[ColKey]) ⇒ TraversableOnce[ColKey]): Projection

  11. val cols: SortedSet[ColKey]

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def inverse: Projection

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. lazy val projected: TableType

    Construct a copy of the table with only selected a subset of rows and columns.

  21. def rows(transform: (SortedSet[RowKey]) ⇒ TraversableOnce[RowKey]): Projection

  22. val rows: SortedSet[RowKey]

  23. def spannedRegion: Region

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    TableProjection → AnyRef → Any
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def withColTypes(colTypes: TraversableOnce[CT]): Projection

  30. def withColTypes(colTypes: CT*): Projection

  31. def withRowTypes(rowTypes: TraversableOnce[RT]): Projection

  32. def withRowTypes(rowTypes: RT*): Projection

  33. def withoutColTypes(colTypes: TraversableOnce[CT]): Projection

  34. def withoutColTypes(colTypes: CT*): Projection

  35. def withoutRowTypes(rowTypes: TraversableOnce[RT]): Projection

  36. def withoutRowTypes(rowTypes: RT*): Projection

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped