Package org.apache.gravitino.dto.rel
Class SortOrderDTO
java.lang.Object
org.apache.gravitino.dto.rel.SortOrderDTO
- All Implemented Interfaces:
Expression
,SortOrder
Data Transfer Object for SortOrder.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface org.apache.gravitino.rel.expressions.Expression
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
-
Method Summary
Modifier and TypeMethodDescriptionstatic SortOrderDTO.Builder
builder()
sortTerm()
void
Validates the sort order.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.gravitino.rel.expressions.Expression
references
-
Field Details
-
EMPTY_SORT
An empty array of SortOrderDTO.
-
-
Method Details
-
sortTerm
- Returns:
- The sort term.
-
expression
- Specified by:
expression
in interfaceSortOrder
- Returns:
- The sort expression.
-
direction
-
nullOrdering
- Specified by:
nullOrdering
in interfaceSortOrder
- Returns:
- The null ordering.
-
validate
Validates the sort order.- Parameters:
columns
- The column DTOs to validate against.- Throws:
IllegalArgumentException
- If the sort order is invalid, this exception is thrown.
-
builder
- Returns:
- the builder for creating a new instance of SortOrderDTO.
-