public static class SortOrder.Builder extends java.lang.Object implements SortOrderBuilder<SortOrder.Builder>
sort orders
.
Call SortOrder.builderFor(Schema)
to create a new builder.
Modifier and Type | Method and Description |
---|---|
SortOrder.Builder |
asc(Term term,
NullOrder nullOrder)
Add an expression term to the sort, ascending with the given null order.
|
SortOrder |
build() |
SortOrder.Builder |
caseSensitive(boolean sortCaseSensitive)
Set case sensitivity of sort column name resolution.
|
SortOrder.Builder |
desc(Term term,
NullOrder nullOrder)
Add an expression term to the sort, ascending with the given null order.
|
SortOrder.Builder |
sortBy(java.lang.String name,
SortDirection direction,
NullOrder nullOrder) |
SortOrder.Builder |
sortBy(Term term,
SortDirection direction,
NullOrder nullOrder) |
SortOrder.Builder |
withOrderId(int newOrderId) |
public SortOrder.Builder asc(Term term, NullOrder nullOrder)
asc
in interface SortOrderBuilder<SortOrder.Builder>
term
- an expression termnullOrder
- a null order (first or last)public SortOrder.Builder desc(Term term, NullOrder nullOrder)
desc
in interface SortOrderBuilder<SortOrder.Builder>
term
- an expression termnullOrder
- a null order (first or last)public SortOrder.Builder sortBy(java.lang.String name, SortDirection direction, NullOrder nullOrder)
public SortOrder.Builder sortBy(Term term, SortDirection direction, NullOrder nullOrder)
public SortOrder.Builder withOrderId(int newOrderId)
public SortOrder.Builder caseSensitive(boolean sortCaseSensitive)
SortOrderBuilder
caseSensitive
in interface SortOrderBuilder<SortOrder.Builder>
sortCaseSensitive
- when true, column name resolution is case-sensitivepublic SortOrder build()