Class CompositeSortComponentsStepImpl
- java.lang.Object
-
- org.hibernate.search.engine.search.sort.dsl.impl.CompositeSortComponentsStepImpl
-
- All Implemented Interfaces:
CompositeSortComponentsStep<CompositeSortComponentsStepImpl>,SortFinalStep,SortThenStep
public final class CompositeSortComponentsStepImpl extends Object implements CompositeSortComponentsStep<CompositeSortComponentsStepImpl>
-
-
Constructor Summary
Constructors Constructor Description CompositeSortComponentsStepImpl(SearchSortDslContext<?,?> dslContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeSortComponentsStepImpladd(SearchSort searchSort)Add an element to the composite sort based on a previously-builtSearchSort.SearchSortFactorythen()Start defining another sort, to be applied after the current one.SearchSorttoSort()Create aSearchSortinstance matching the definition given in the previous DSL steps.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.engine.search.sort.dsl.CompositeSortComponentsStep
add
-
-
-
-
Constructor Detail
-
CompositeSortComponentsStepImpl
public CompositeSortComponentsStepImpl(SearchSortDslContext<?,?> dslContext)
-
-
Method Detail
-
add
public CompositeSortComponentsStepImpl add(SearchSort searchSort)
Description copied from interface:CompositeSortComponentsStepAdd an element to the composite sort based on a previously-builtSearchSort.- Specified by:
addin interfaceCompositeSortComponentsStep<CompositeSortComponentsStepImpl>- Parameters:
searchSort- The sort to add.- Returns:
this, for method chaining.
-
then
public SearchSortFactory then()
Description copied from interface:SortThenStepStart defining another sort, to be applied after the current one.- Specified by:
thenin interfaceSortThenStep- Returns:
- The next step.
-
toSort
public SearchSort toSort()
Description copied from interface:SortFinalStepCreate aSearchSortinstance matching the definition given in the previous DSL steps.- Specified by:
toSortin interfaceSortFinalStep- Returns:
- The
SearchSortresulting from the previous DSL steps.
-
-