aggregateOf

internal inline fun <C, reified V, R> Aggregator<V & Any, R>.aggregateOf(values: Sequence<C>, crossinline transform: (C) -> V): R

Aggregates values by first applying transform to each element of the sequence and then applying the Aggregator (this) to the resulting sequence.

Type Parameters

V

is used to infer whether there are nulls in the values fed to the aggregator!


internal inline fun <C, reified V, R> Aggregator<V & Any, R>.aggregateOf(column: DataColumn<C>, crossinline transform: (C) -> V): R

Aggregates column by first applying transform to each element of the column and then applying the Aggregator (this) to the resulting sequence.

Type Parameters

V

is used to infer whether there are nulls in the values fed to the aggregator!


internal inline fun <T, reified V, R> Aggregator<*, R>.aggregateOf(frame: DataFrame<T>, crossinline expression: RowExpression<T, V>): R

Aggregates frame by first applying expression to each row of the frame and then applying the Aggregator (this) to the resulting sequence.

Type Parameters

V

is used to infer whether there are nulls in the values fed to the aggregator!


internal inline fun <T, reified C, reified R> Aggregator<*, R>.aggregateOf(data: Grouped<T>, resultName: String? = null, crossinline expression: RowExpression<T, C>): DataFrame<T>

Aggregates data by first applying expression to each row of the frame and then

Type Parameters

C

is used to infer whether there are nulls in the values fed to the aggregator!


internal inline fun <T, reified C, reified R> Aggregator<*, R>.aggregateOf(data: PivotGroupBy<T>, crossinline expression: RowExpression<T, C>): DataFrame<T>
internal inline fun <T, reified C, reified R> Grouped<T>.aggregateOf(resultName: String?, crossinline expression: RowExpression<T, C>, aggregator: Aggregator<C & Any, R>): DataFrame<T>
internal inline fun <T, reified C, R> PivotGroupBy<T>.aggregateOf(crossinline expression: RowExpression<T, C>, aggregator: Aggregator<C & Any, R>): DataFrame<T>

Type Parameters

C

is used to infer whether there are nulls in the values fed to the aggregator!