| Modifier and Type | Method and Description |
|---|---|
S |
SearchQueryContext.sort(Function<? super SC,? extends SearchSortTerminalContext> sortContributor)
Add a sort to this query.
|
| Modifier and Type | Method and Description |
|---|---|
S |
AbstractSearchQueryContext.sort(Function<? super SC,? extends SearchSortTerminalContext> sortContributor) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CompositeSortContext
The context used when defining a composite sort explicitly
(not using
NonEmptySortContext.then()). |
interface |
DistanceSortContext
The context used when defining a field sort.
|
interface |
FieldSortContext
The context used when defining a field sort.
|
interface |
NonEmptySortContext
A superinterface for contexts allowing to define sorts.
|
interface |
ScoreSortContext
The context used when defining a score sort.
|
| Modifier and Type | Method and Description |
|---|---|
default CompositeSortContext |
CompositeSortContext.add(SearchSortTerminalContext terminalContext)
Add an element to the composite sort based on an almost-built
SearchSort. |
| Modifier and Type | Method and Description |
|---|---|
<T> SearchSortFactoryExtensionContext |
SearchSortFactoryExtensionContext.ifSupported(SearchSortFactoryContextExtension<T> extension,
Function<T,? extends SearchSortTerminalContext> sortContributor)
If the given extension is supported, and none of the previous extensions passed to
SearchSortFactoryExtensionContext.ifSupported(SearchSortFactoryContextExtension, Function)
was supported, extend the current context with this extension,
and apply the given consumer to the extended context. |
NonEmptySortContext |
SearchSortFactoryExtensionContext.orElse(Function<SearchSortFactoryContext,? extends SearchSortTerminalContext> sortContributor)
If no extension passed to
SearchSortFactoryExtensionContext.ifSupported(SearchSortFactoryContextExtension, Function)
was supported so far, apply the given consumer to the current (non-extended) SearchSortFactoryContext;
otherwise do nothing. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractNonEmptySortContext<B> |
class |
StaticNonEmptySortContext<B> |
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.