N - The type of the next step, returned after a predicate is defined.H - The type of hits for the created query.PDF - The type of factory used to create predicates in predicate(Function).public interface SearchQueryPredicateStep<N extends SearchQueryOptionsStep<?,H,?,?,?>,H,PDF extends SearchPredicateFactory>
| Modifier and Type | Method and Description |
|---|---|
N |
predicate(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)
Set the predicate for this query.
|
N |
predicate(SearchPredicate predicate)
Set the predicate for this query.
|
N predicate(SearchPredicate predicate)
predicate - A SearchPredicate object obtained from the search scope.N predicate(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)
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-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.