gravitino.api.expressions.sorts.sort_orders.SortOrders¶
- class gravitino.api.expressions.sorts.sort_orders.SortOrders¶
Bases:
object
Helper methods to create SortOrders to pass into Apache Gravitino.
- __init__()¶
Methods
__init__
()ascending
(expression)Creates a sort order with ascending direction and nulls first.
descending
(expression)Creates a sort order with descending direction and nulls last.
of
(expression, direction[, null_ordering])Creates a sort order with the given direction and optionally specified null ordering.
Attributes
NONE
- static ascending(expression: Expression) SortImpl ¶
Creates a sort order with ascending direction and nulls first.
- static descending(expression: Expression) SortImpl ¶
Creates a sort order with descending direction and nulls last.
- static of(expression: Expression, direction: SortDirection, null_ordering: NullOrdering | None = None) SortImpl ¶
Creates a sort order with the given direction and optionally specified null ordering.