All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.dataframe.aggregation.ColumnsForAggregateSelectionDsl.kt Maven / Gradle / Ivy

package org.jetbrains.kotlinx.dataframe.aggregation

import org.jetbrains.kotlinx.dataframe.api.ColumnsSelectionDsl
import org.jetbrains.kotlinx.dataframe.api.pathOf
import org.jetbrains.kotlinx.dataframe.columns.ColumnPath
import org.jetbrains.kotlinx.dataframe.columns.ColumnSet
import org.jetbrains.kotlinx.dataframe.impl.aggregation.ConfiguredAggregateColumn

public interface ColumnsForAggregateSelectionDsl : ColumnsSelectionDsl {

    public infix fun  ColumnSet.default(defaultValue: C): ColumnSet =
        ConfiguredAggregateColumn.withDefault(this, defaultValue)

    public fun path(vararg names: String): ColumnPath = ColumnPath(names.asList())

    public infix fun  ColumnSet.into(name: String): ColumnSet = ConfiguredAggregateColumn.withPath(this, pathOf(name))

    public infix fun  ColumnSet.into(path: ColumnPath): ColumnSet = ConfiguredAggregateColumn.withPath(this, path)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy