DataFrame.SortWithinPartitions Method

Definition

Overloads

SortWithinPartitions(Column[])

Returns a new DataFrame with each partition sorted by the given expressions.

SortWithinPartitions(String, String[])

Returns a new DataFrame with each partition sorted by the given expressions.

SortWithinPartitions(Column[])

Returns a new DataFrame with each partition sorted by the given expressions.

C#
public Microsoft.Spark.Sql.DataFrame SortWithinPartitions(params Microsoft.Spark.Sql.Column[] columns);

Parameters

columns
Column[]

Column expressions to sort by

Returns

DataFrame object

Remarks

This is the same operation as "SORT BY" in SQL (Hive QL).

Applies to

SortWithinPartitions(String, String[])

Returns a new DataFrame with each partition sorted by the given expressions.

C#
public Microsoft.Spark.Sql.DataFrame SortWithinPartitions(string column, params string[] columns);

Parameters

column
String

Column name to sort by

columns
String[]

Additional column names to sort by

Returns

DataFrame object

Remarks

This is the same operation as "SORT BY" in SQL (Hive QL).

Applies to