N - The type of the next step.public interface NestedPredicateNestStep<N extends NestedPredicateOptionsStep<?>>
| Modifier and Type | Method and Description |
|---|---|
N |
nest(Function<? super SearchPredicateFactory,? extends PredicateFinalStep> predicateContributor)
Set the inner predicate defined by the given function.
|
default N |
nest(PredicateFinalStep dslFinalStep)
Set the inner predicate to an almost-built
SearchPredicate. |
N |
nest(SearchPredicate searchPredicate)
Set the inner predicate to a previously-built
SearchPredicate. |
N 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 N 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.N 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.