N - The type of the next step (returned by first(), for example).public interface FieldSortMissingValueBehaviorStep<N>
| Modifier and Type | Method and Description |
|---|---|
N |
first()
Put documents with missing values first in the sorting.
|
N |
last()
Put documents with missing values last in the sorting.
|
default N |
sortFirst()
Deprecated.
Use
first() instead. |
default N |
sortLast()
Deprecated.
Use
last() instead. |
default N |
use(Object value)
When documents are missing a value on the sort field, use the given value instead.
|
N |
use(Object value,
ValueConvert convert)
When documents are missing a value on the sort field, use the given value instead.
|
N last()
This instruction is independent of whether the sort is being ascending or descending.
@Deprecated default N sortLast()
last() instead.N first()
This instruction is independent of whether the sort is being ascending or descending.
@Deprecated default N sortFirst()
first() instead.default N use(Object value)
This method will apply DSL converters to value before Hibernate Search attempts to interpret it as a field value.
See ValueConvert.YES.
value - The value to use as a default when a document is missing a value on the sort field.SearchException - If the field is not numeric.N use(Object value, ValueConvert convert)
value - The value to use as a default when a document is missing a value on the sort field.convert - Controls how the value should be converted before Hibernate Search attempts to interpret it as a field value.
See ValueConvert.SearchException - If the field is not numeric.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.