case classTableProjection[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 toProjectionval table: Table = ...
println(table.withColTypes(Name, Price).withRowTypes(Item))
// The inverse may also be useful for removing some data
println(table.withColTypes(Comments).inverse)
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: