QueryOrder
class in package klyn.data.internal

    public class QueryOrder<T, K> implements QueryOrderBase<T>:

QueryOrder
All Implemented Interfaces: QueryOrderBase

One canonical KQL ordering key.

Example

    order = QueryOrder<Int, Int>(lambda(value): value, descending=true)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | descending `descending as Boolean` | True for descending order.
public readonly property | nullPlacement `nullPlacement as Int` | Null placement: 0 provider default, 1 first, 2 last.
public readonly property | selector `selector as QuerySelector<T, K>` | Value selector used by the ordering operation.

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | QueryOrder `QueryOrder(selector as QuerySelector<T, K>, descending as Boolean = false, nullPlacement as Int = 0):` | Creates an immutable ordering key.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | compare `compare(left as T, right as T) as Int:` | Compares two rows while applying null placement and direction.

Inherited Methods
method Inherited Methods from QueryOrderBase: compare