public interface SortOrderBuilder<R>
Modifier and Type | Method and Description |
---|---|
default R |
asc(java.lang.String name)
Add a field to the sort by field name, ascending with nulls first.
|
default R |
asc(java.lang.String name,
NullOrder nullOrder)
Add a field to the sort by field name, ascending with the given null order.
|
default R |
asc(Term term)
Add an expression term to the sort, ascending with nulls first.
|
R |
asc(Term term,
NullOrder nullOrder)
Add an expression term to the sort, ascending with the given null order.
|
default R |
desc(java.lang.String name)
Add a field to the sort by field name, ascending with nulls first.
|
default R |
desc(java.lang.String name,
NullOrder nullOrder)
Add a field to the sort by field name, ascending with the given null order.
|
default R |
desc(Term term)
Add an expression term to the sort, ascending with nulls first.
|
R |
desc(Term term,
NullOrder nullOrder)
Add an expression term to the sort, ascending with the given null order.
|
default R asc(java.lang.String name)
name
- a field namedefault R asc(java.lang.String name, NullOrder nullOrder)
name
- a field namenullOrder
- a null order (first or last)default R asc(Term term)
term
- an expression termR asc(Term term, NullOrder nullOrder)
term
- an expression termnullOrder
- a null order (first or last)default R desc(java.lang.String name)
name
- a field namedefault R desc(java.lang.String name, NullOrder nullOrder)
name
- a field namenullOrder
- a null order (first or last)default R desc(Term term)
term
- an expression term