gravitino.api.expressions.sorts.sort_order.SortOrder

class gravitino.api.expressions.sorts.sort_order.SortOrder

Bases: Expression, ABC

Represents a sort order in the public expression API.

__init__()

Methods

__init__()

children()

Returns the children expressions of this sort order.

direction()

Returns the sort direction.

expression()

Returns the sort expression.

null_ordering()

Returns the null ordering.

references()

Returns a list of fields or columns that are referenced by this expression.

Attributes

EMPTY_EXPRESSION

EMPTY_EXPRESSION is only used as an input when the default children method builds the result.

EMPTY_NAMED_REFERENCE

EMPTY_NAMED_REFERENCE is only used as an input when the default references method builds the result array to avoid repeatedly allocating an empty array.

EMPTY_EXPRESSION: List[Expression] = []

EMPTY_EXPRESSION is only used as an input when the default children method builds the result.

EMPTY_NAMED_REFERENCE: List[NamedReference] = []

EMPTY_NAMED_REFERENCE is only used as an input when the default references method builds the result array to avoid repeatedly allocating an empty array.

children() List[Expression]

Returns the children expressions of this sort order.

abstract direction() SortDirection

Returns the sort direction.

abstract expression() Expression

Returns the sort expression.

abstract null_ordering() NullOrdering

Returns the null ordering.

references() List[NamedReference]

Returns a list of fields or columns that are referenced by this expression.