WindowSpec.OrderBy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OrderBy(Column[]) |
Defines the ordering columns in a |
OrderBy(String, String[]) |
Defines the ordering columns in a |
OrderBy(Column[])
Defines the ordering columns in a WindowSpec
.
public Microsoft.Spark.Sql.Expressions.WindowSpec OrderBy (params Microsoft.Spark.Sql.Column[] columns);
member this.OrderBy : Microsoft.Spark.Sql.Column[] -> Microsoft.Spark.Sql.Expressions.WindowSpec
Public Function OrderBy (ParamArray columns As Column()) As WindowSpec
Parameters
- columns
- Column[]
Column expressions
Returns
WindowSpec object
Applies to
OrderBy(String, String[])
Defines the ordering columns in a WindowSpec
.
public Microsoft.Spark.Sql.Expressions.WindowSpec OrderBy (string colName, params string[] colNames);
member this.OrderBy : string * string[] -> Microsoft.Spark.Sql.Expressions.WindowSpec
Public Function OrderBy (colName As String, ParamArray colNames As String()) As WindowSpec
Parameters
- colName
- String
Name of column
- colNames
- String[]
Additional column names
Returns
WindowSpec object