TakeColumnsSelectionDsl

Take Columns Selection DSL

See Grammar for all functions in this interface.

Inheritors

Types

Link copied to clipboard
interface Grammar

Functions

Link copied to clipboard
open fun <C> ColumnSet<C>.take(n: Int): ColumnSet<C>

This collects the first n columns from this into a ColumnSet.

Link copied to clipboard
open fun String.takeCols(n: Int): ColumnSet<*>
open fun KProperty<*>.takeCols(n: Int): ColumnSet<*>
open fun ColumnPath.takeCols(n: Int): ColumnSet<*>

This collects the first n columns from this into a ColumnSet.

Link copied to clipboard
open fun String.takeColsWhile(predicate: (ColumnWithPath<*>) -> Boolean): ColumnSet<*>
open fun KProperty<*>.takeColsWhile(predicate: (ColumnWithPath<*>) -> Boolean): ColumnSet<*>
open fun ColumnPath.takeColsWhile(predicate: (ColumnWithPath<*>) -> Boolean): ColumnSet<*>
open fun SingleColumn<DataRow<*>>.takeColsWhile(predicate: (ColumnWithPath<*>) -> Boolean): ColumnSet<*>

This operation takes the first columns from this while they adhere to the predicate, stops as soon as it encounters one that does not, and collects the taken columns into a ColumnSet.

Link copied to clipboard
open fun ColumnsSelectionDsl<*>.takeLast(n: Int = 1): ColumnSet<*>
open fun <C> ColumnSet<C>.takeLast(n: Int = 1): ColumnSet<C>

This collects the last n columns from this into a ColumnSet.

Link copied to clipboard
open fun String.takeLastCols(n: Int): ColumnSet<*>
open fun KProperty<*>.takeLastCols(n: Int): ColumnSet<*>

This collects the last n columns from this into a ColumnSet.

Link copied to clipboard
open fun String.takeLastColsWhile(predicate: (ColumnWithPath<*>) -> Boolean): ColumnSet<*>
open fun KProperty<*>.takeLastColsWhile(predicate: (ColumnWithPath<*>) -> Boolean): ColumnSet<*>

This operation takes the last columns from this while they adhere to the predicate, stops as soon as it encounters one that does not, and collects the taken columns into a ColumnSet.

Link copied to clipboard
open fun <C> ColumnSet<C>.takeLastWhile(predicate: (ColumnWithPath<C>) -> Boolean): ColumnSet<C>

This operation takes the last columns from this while they adhere to the predicate, stops as soon as it encounters one that does not, and collects the taken columns into a ColumnSet.

Link copied to clipboard
open fun ColumnsSelectionDsl<*>.takeWhile(predicate: (ColumnWithPath<*>) -> Boolean): ColumnSet<*>
open fun <C> ColumnSet<C>.takeWhile(predicate: (ColumnWithPath<C>) -> Boolean): ColumnSet<C>

This operation takes the first columns from this while they adhere to the predicate, stops as soon as it encounters one that does not, and collects the taken columns into a ColumnSet.