Modifier and Type | Method and Description |
---|---|
SearchPredicate |
SearchPredicateFactoryContext.bool(Consumer<? super BooleanJunctionPredicateContext> clauseContributor)
Match documents if they match a combination of boolean clauses,
which will be defined by the given consumer.
|
SearchPredicate |
SearchPredicateFactoryExtensionContext.orElse(Function<SearchPredicateFactoryContext,SearchPredicate> 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. |
SearchPredicate |
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. |
SearchPredicate |
SearchPredicateTerminalContext.toPredicate()
Create a
SearchPredicate instance
matching the definition given in the previous DSL steps. |
Modifier and Type | Method and Description |
---|---|
MatchAllPredicateContext |
MatchAllPredicateContext.except(SearchPredicate searchPredicate)
Add a "must not" clause based on a previously-built
SearchPredicate , |
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.filter(SearchPredicate searchPredicate)
Add a "filter" clause based on a previously-built
SearchPredicate . |
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.must(SearchPredicate searchPredicate)
Add a "must" clause based on a previously-built
SearchPredicate . |
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.mustNot(SearchPredicate searchPredicate)
Add a "must not" clause based on a previously-built
SearchPredicate . |
SearchPredicateTerminalContext |
NestedPredicateFieldContext.nest(SearchPredicate searchPredicate)
Set the inner predicate to a previously-built
SearchPredicate . |
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.should(SearchPredicate searchPredicate)
Add a "should" clause based on a previously-built
SearchPredicate . |
Modifier and Type | Method and Description |
---|---|
MatchAllPredicateContext |
MatchAllPredicateContext.except(Function<? super SearchPredicateFactoryContext,SearchPredicate> clauseContributor)
Add a "must not" clause to be defined by the given function.
|
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.filter(Function<? super SearchPredicateFactoryContext,SearchPredicate> clauseContributor)
Add a "filter" clause to be defined by the given function.
|
<T> SearchPredicateFactoryExtensionContext |
SearchPredicateFactoryExtensionContext.ifSupported(SearchPredicateFactoryContextExtension<T> extension,
Function<T,SearchPredicate> 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,SearchPredicate> clauseContributor)
Add a "must" clause to be defined by the given function.
|
BooleanJunctionPredicateContext |
BooleanJunctionPredicateContext.mustNot(Function<? super SearchPredicateFactoryContext,SearchPredicate> clauseContributor)
Add a "must not" clause to be defined by the given function.
|
SearchPredicateTerminalContext |
NestedPredicateFieldContext.nest(Function<? super SearchPredicateFactoryContext,SearchPredicate> predicateContributor)
Create a context allowing to define the inner predicate,
and apply a consumer to it.
|
SearchPredicate |
SearchPredicateFactoryExtensionContext.orElse(Function<SearchPredicateFactoryContext,SearchPredicate> 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,SearchPredicate> clauseContributor)
Add a "should" clause to be defined by the given function.
|
Modifier and Type | Method and Description |
---|---|
SearchPredicate |
DelegatingSearchPredicateFactoryContext.bool(Consumer<? super BooleanJunctionPredicateContext> clauseContributor) |
SearchPredicate |
AbstractSearchPredicateTerminalContext.toPredicate() |
Modifier and Type | Method and Description |
---|---|
SearchQueryContext<Q> |
SearchQueryResultContext.predicate(SearchPredicate predicate) |
Modifier and Type | Method and Description |
---|---|
SearchQueryContext<Q> |
SearchQueryResultContext.predicate(Function<? super SearchPredicateFactoryContext,SearchPredicate> predicateContributor) |
Modifier and Type | Method and Description |
---|---|
SearchPredicate |
SearchPredicateBuilderFactory.toSearchPredicate(B builder)
Convert a predicate builder to a reusable
SearchPredicate object. |
Modifier and Type | Method and Description |
---|---|
B |
SearchPredicateBuilderFactory.toImplementation(SearchPredicate predicate)
Convert a
SearchPredicate object back to a predicate builder. |
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.