| Modifier and Type | Interface and Description |
|---|---|
interface |
BooleanJunctionPredicateContext
The context used when defining a boolean junction, allowing in particular to add clauses.
|
interface |
ExistsPredicateTerminalContext
The context used when an "exists" predicate is fully defined.
|
interface |
MatchAllPredicateContext
The context used when starting to define a match all predicate.
|
interface |
MatchIdPredicateTerminalContext
The context used when defining a match on an identifier.
|
interface |
MatchPredicateTerminalContext
The context used when a match predicate is fully defined.
|
interface |
NestedPredicateTerminalContext
The context used when a nested predicate is fully defined.
|
interface |
PhrasePredicateTerminalContext
The context used when a phrase predicate is fully defined.
|
interface |
RangePredicateLimitTerminalContext
The context used when a range predicate is fully defined,
just after the last limit was defined.
|
interface |
RangePredicateTerminalContext
The context used when a range predicate is fully defined.
|
interface |
SimpleQueryStringPredicateTerminalContext
The context used when a simple query string predicate is fully defined.
|
interface |
SpatialWithinPredicateTerminalContext
The context used when a spatial within predicate is fully defined.
|
interface |
WildcardPredicateTerminalContext
The context used when a wildcard predicate is fully defined.
|
| Modifier and Type | Method and Description |
|---|---|
SearchPredicateTerminalContext |
SearchPredicateFactoryContext.bool(Consumer<? super BooleanJunctionPredicateContext> clauseContributor)
Match documents if they match a combination of boolean clauses,
which will be defined by the given consumer.
|
SearchPredicateTerminalContext |
SearchPredicateFactoryExtensionContext.orElse(Function<SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> predicateContributor)
If no extension passed to
SearchPredicateFactoryExtensionContext.ifSupported(SearchPredicateFactoryContextExtension, Function)
was supported so far, apply the given consumer to the current (non-extended) SearchPredicateFactoryContext;
otherwise return the predicate created in the first succeeding ifSupported call. |
SearchPredicateTerminalContext |
SearchPredicateFactoryExtensionContext.orElseFail()
If no extension passed to
SearchPredicateFactoryExtensionContext.ifSupported(SearchPredicateFactoryContextExtension, Function)
was supported so far, throw an exception;
otherwise return the predicate created in the first succeeding ifSupported call. |
| Modifier and Type | Method and Description |
|---|---|
default MatchAllPredicateContext |
MatchAllPredicateContext.except(SearchPredicateTerminalContext terminalContext)
Add a "must not" clause based on an almost-built
SearchPredicate. |
default BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.filter(SearchPredicateTerminalContext terminalContext)
Add a "filter" clause based on an almost-built
SearchPredicate. |
default BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.must(SearchPredicateTerminalContext terminalContext)
Add a "must" clause based on an almost-built
SearchPredicate. |
default BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.mustNot(SearchPredicateTerminalContext terminalContext)
Add a "must not" clause based on an almost-built
SearchPredicate. |
default NestedPredicateTerminalContext |
NestedPredicateFieldContext.nest(SearchPredicateTerminalContext terminalContext)
Set the inner predicate to an almost-built
SearchPredicate. |
default BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.should(SearchPredicateTerminalContext terminalContext)
Add a "should" clause based on an almost-built
SearchPredicate. |
| Modifier and Type | Method and Description |
|---|---|
MatchAllPredicateContext |
MatchAllPredicateContext.except(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Add a "must not" clause to be defined by the given function.
|
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.filter(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Add a "filter" clause to be defined by the given function.
|
<T> SearchPredicateFactoryExtensionContext |
SearchPredicateFactoryExtensionContext.ifSupported(SearchPredicateFactoryContextExtension<T> extension,
Function<T,? extends SearchPredicateTerminalContext> predicateContributor)
If the given extension is supported, and none of the previous extensions passed to
SearchPredicateFactoryExtensionContext.ifSupported(SearchPredicateFactoryContextExtension, Function)
was supported, extend the current context with this extension,
apply the given function to the extended context, and store the resulting predicate for later retrieval. |
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.must(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Add a "must" clause to be defined by the given function.
|
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.mustNot(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Add a "must not" clause to be defined by the given function.
|
NestedPredicateTerminalContext |
NestedPredicateFieldContext.nest(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> predicateContributor)
Create a context allowing to define the inner predicate,
and apply a consumer to it.
|
SearchPredicateTerminalContext |
SearchPredicateFactoryExtensionContext.orElse(Function<SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> predicateContributor)
If no extension passed to
SearchPredicateFactoryExtensionContext.ifSupported(SearchPredicateFactoryContextExtension, Function)
was supported so far, apply the given consumer to the current (non-extended) SearchPredicateFactoryContext;
otherwise return the predicate created in the first succeeding ifSupported call. |
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.should(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> clauseContributor)
Add a "should" clause to be defined by the given function.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractSearchPredicateTerminalContext<B>
An abstract base for
SearchPredicateTerminalContext implementations. |
| Modifier and Type | Method and Description |
|---|---|
SearchPredicateTerminalContext |
DelegatingSearchPredicateFactoryContext.bool(Consumer<? super BooleanJunctionPredicateContext> clauseContributor) |
| Modifier and Type | Method and Description |
|---|---|
N |
SearchQueryResultContext.predicate(Function<? super PDC,? extends SearchPredicateTerminalContext> predicateContributor)
Set the predicate for this query.
|
| Modifier and Type | Method and Description |
|---|---|
S |
AbstractSearchQueryContext.predicate(Function<? super PDC,? extends SearchPredicateTerminalContext> predicateContributor) |
SearchQueryContext<?,E,?> |
AbstractDelegatingSearchQueryResultDefinitionContext.predicate(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> predicateContributor) |
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.