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 callingSortThenStep.then()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default S
add(SortFinalStep dslFinalStep)
Add an element to the composite sort based on an almost-builtSearchSort
.S
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
toSort
-
Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.SortThenStep
then
-
-
-
-
Method Detail
-
add
S add(SearchSort searchSort)
Add an element to the composite sort based on a previously-builtSearchSort
.- Parameters:
searchSort
- The sort to add.- Returns:
this
, for method chaining.
-
add
default S add(SortFinalStep dslFinalStep)
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.
-
-