public class OrderByState extends BuildableOrderState
OrderState that expects the next token to be a sort order,
timestamp or a new key to sort by.order| Modifier and Type | Method and Description |
|---|---|
BuiltOrder |
$order()
Return the
BuiltOrder that is being constructed. |
default OrderDirectionState |
ascending()
Add the
Direction.ASCENDING direction to the last key that was
specified in BuiltOrder that is building |
OrderAtState |
at(Timestamp timestamp) |
default OrderDirectionState |
decreasing()
Alias for
descending(). |
default OrderDirectionState |
descending()
Add the
Direction.DESCENDING direction to the last key that was
specified in BuiltOrder that is building |
default OrderDirectionState |
increasing()
Alias for
ascending(). |
default OrderDirectionState |
largestFirst()
Alias for
descending(). |
default OrderDirectionState |
largestLast()
Alias for
ascending(). |
default OrderDirectionState |
reversed()
Alias for
descending(). |
default OrderDirectionState |
smallestFirst()
Alias for
ascending(). |
default OrderDirectionState |
smallestLast()
Alias for
descending(). |
OrderThenState |
then()
Transition to a state where a new key can be added.
|
default OrderByState |
then(String key)
Shortcut for calling
then() immediately followed by
OrderThenState.by(String) with the provided key. |
build, equals, hashCode, specclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitby, from, isSingular, keys, keysWithTimestamps, nonepublic OrderThenState then()
public OrderAtState at(Timestamp timestamp)
public BuiltOrder $order()
BuiltOrder that is being constructed.BuiltOrderpublic OrderByState then(String key)
then() immediately followed by
OrderThenState.by(String) with the provided key.key - public OrderDirectionState ascending()
Direction.ASCENDING direction to the last key that was
specified in BuiltOrder that is buildingpublic OrderDirectionState decreasing()
descending().public OrderDirectionState descending()
Direction.DESCENDING direction to the last key that was
specified in BuiltOrder that is buildingpublic OrderDirectionState increasing()
ascending().public OrderDirectionState largestFirst()
descending().public OrderDirectionState largestLast()
ascending().public OrderDirectionState reversed()
descending().public OrderDirectionState smallestFirst()
ascending().public OrderDirectionState smallestLast()
descending().