public interface NestedPredicateNestStep
| Modifier and Type | Method and Description |
|---|---|
NestedPredicateOptionsStep |
nest(Function<? super SearchPredicateFactory,? extends PredicateFinalStep> predicateContributor)
Set the inner predicate defined by the given function.
|
default NestedPredicateOptionsStep |
nest(PredicateFinalStep dslFinalStep)
Set the inner predicate to an almost-built
SearchPredicate. |
NestedPredicateOptionsStep |
nest(SearchPredicate searchPredicate)
Set the inner predicate to a previously-built
SearchPredicate. |
NestedPredicateOptionsStep 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 NestedPredicateOptionsStep nest(PredicateFinalStep dslFinalStep)
SearchPredicate.
Matching documents are those for which at least one element of the nested object field matches the inner predicate.
dslFinalStep - A final step in the predicate DSL allowing the retrieval of a SearchPredicate.NestedPredicateOptionsStep nest(Function<? super SearchPredicateFactory,? extends PredicateFinalStep> 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 factory passed in parameter to create a predicate,
returning the final step in the predicate DSL.
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.