nullsLast

open fun <C> ColumnSet<C?>.nullsLast(flag: Boolean = true): ColumnSet<C?>

Places null values after non-null values when sorting in ascending order, or before non-null values when sorting in descending order by these columns.

By default, null values are considered the smallest values when sorting. Use this method to treat them as the largest values.

When flag is false, the selected columns remain unchanged.

Parameters

flag

whether null values should be placed last.


open fun <C> SingleColumn<C?>.nullsLast(flag: Boolean = true): SingleColumn<C?>

Places null values after non-null values when sorting in ascending order, or before non-null values when sorting in descending order by this column.

By default, null values are considered the smallest values when sorting. Use this method to treat them as the largest values.

When flag is false, the column remains unchanged.

Parameters

flag

whether null values should be placed last.


open fun String.nullsLast(flag: Boolean = true): SingleColumn<Comparable<*>?>

Places null values after non-null values when sorting in ascending order, or before non-null values when sorting in descending order by this column.

By default, null values are considered the smallest values when sorting. Use this method to treat them as the largest values.

When flag is false, the default null ordering is used.

Parameters

flag

whether null values should be placed last.


open fun <C> KProperty<C?>.nullsLast(flag: Boolean = true): SingleColumn<C?>

Deprecated

It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html