Package org.apache.gravitino.dto.rel
Class SortOrderDTO.Builder
java.lang.Object
org.apache.gravitino.dto.rel.SortOrderDTO.Builder
- Enclosing class:
- SortOrderDTO
Builder for SortOrderDTO.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a SortOrderDTO based on the provided builder parameters.withDirection
(SortDirection direction) Set the sort direction.withNullOrder
(NullOrdering nullOrdering) Set the null ordering.withSortTerm
(FunctionArg sortTerm) Set the sort term.
-
Method Details
-
withSortTerm
Set the sort term.- Parameters:
sortTerm
- The sort term to set.- Returns:
- The builder.
-
withDirection
Set the sort direction.- Parameters:
direction
- The sort direction to set.- Returns:
- The builder.
-
withNullOrder
Set the null ordering.- Parameters:
nullOrdering
- The null ordering to set.- Returns:
- The builder.
-
build
Builds a SortOrderDTO based on the provided builder parameters.- Returns:
- A new SortOrderDTO instance.
-