public interface NestedPredicateFieldContext
Modifier and Type | Method and Description |
---|---|
SearchPredicateTerminalContext |
nest(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> predicateContributor)
Create a context allowing to define the inner predicate,
and apply a consumer to it.
|
SearchPredicateTerminalContext |
nest(SearchPredicate searchPredicate)
Set the inner predicate to a previously-built
SearchPredicate . |
default SearchPredicateTerminalContext |
nest(SearchPredicateTerminalContext terminalContext)
Set the inner predicate to an almost-built
SearchPredicate . |
SearchPredicateTerminalContext nest(SearchPredicate searchPredicate)
SearchPredicate
.
Matching documents are those for which at least one element of the nested object field matches the inner predicate.
searchPredicate
- The predicate that must be matched by at least one element of the nested object field.default SearchPredicateTerminalContext nest(SearchPredicateTerminalContext terminalContext)
SearchPredicate
.
Matching documents are those for which at least one element of the nested object field matches the inner predicate.
terminalContext
- The terminal context allowing to retrieve a SearchPredicate
.SearchPredicateTerminalContext nest(Function<? super SearchPredicateFactoryContext,? extends SearchPredicateTerminalContext> predicateContributor)
Best used with lambda expressions.
Matching documents are those for which at least one element of the nested object field matches the inner predicate.
predicateContributor
- A function that will use the DSL context passed in parameter to create a predicate,
returning the resulting terminal context.
Should generally be a lambda expression.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.