Interface FieldSortMissingValueBehaviorStep<N>
- Type Parameters:
N- The type of the next step (returned byFieldSortMissingValueBehaviorGenericStep.first(), for example).
- All Superinterfaces:
FieldSortMissingValueBehaviorGenericStep<Object,N>
public interface FieldSortMissingValueBehaviorStep<N>
extends FieldSortMissingValueBehaviorGenericStep<Object,N>
The step in a sort definition where the behavior on missing values can be set.
- Author:
- Emmanuel Bernard emmanuel@hibernate.org
-
Method Summary
Modifier and TypeMethodDescriptiondefault NWhen documents are missing a value on the sort field, use the given value instead.default Nuse(Object value, ValueConvert convert) Deprecated.use(Object value, ValueModel valueModel) When documents are missing a value on the sort field, use the given value instead.Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.FieldSortMissingValueBehaviorGenericStep
first, highest, last, lowest
-
Method Details
-
use
When documents are missing a value on the sort field, use the given value instead.This method will apply DSL converters to
valuebefore Hibernate Search attempts to interpret it as a field value. SeeValueModel.MAPPING.- Specified by:
usein interfaceFieldSortMissingValueBehaviorGenericStep<Object,N> - Parameters:
value- The value to use as a default when a document is missing a value on the sort field.- Returns:
- The next step.
- Throws:
org.hibernate.search.util.common.SearchException- If the field is not numeric.
-
use
Deprecated.Useuse(Object, ValueModel)instead.When documents are missing a value on the sort field, use the given value instead.- Parameters:
value- The value to use as a default when a document is missing a value on the sort field.convert- Controls how thevalueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueConvert.- Returns:
- The next step.
- Throws:
org.hibernate.search.util.common.SearchException- If the field is not numeric.
-
use
When documents are missing a value on the sort field, use the given value instead.- Parameters:
value- The value to use as a default when a document is missing a value on the sort field.valueModel- The model value, determines how thevalueshould be converted before Hibernate Search attempts to interpret it as a field value. SeeValueModel.- Returns:
- The next step.
- Throws:
org.hibernate.search.util.common.SearchException- If the field is not numeric.
-
use(Object, ValueModel)instead.