Interface CompositeSortComponentsStep<S extends CompositeSortComponentsStep<?>>
- Type Parameters:
S- The "self" type (the actual exposed type of this step).
- All Superinterfaces:
SortFinalStep,SortThenStep
public interface CompositeSortComponentsStep<S extends CompositeSortComponentsStep<?>>
extends SortFinalStep, SortThenStep
The initial and final step in a composite sort definition, where sort elements can be added.
This is only used in "explicit" composite sorts,
for example when calling SearchSortFactory.composite(),
but not in "implicit" composite sorts such as when calling SortThenStep.then().
-
Method Summary
Modifier and TypeMethodDescriptiondefault Sadd(SortFinalStep dslFinalStep) Add an element to the composite sort based on an almost-builtSearchSort.add(SearchSort searchSort) Add an element to the composite sort based on a previously-builtSearchSort.Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.SortFinalStep
toSortMethods inherited from interface org.hibernate.search.engine.search.sort.dsl.SortThenStep
then
-
Method Details
-
add
Add an element to the composite sort based on a previously-builtSearchSort.- Parameters:
searchSort- The sort to add.- Returns:
this, for method chaining.
-
add
Add an element to the composite sort based on an almost-builtSearchSort.- Parameters:
dslFinalStep- A final step in the sort DSL allowing the retrieval of aSearchSort.- Returns:
this, for method chaining.
-