N - The type of the next context, returned after a predicate is defined.H - The type of hits for the created query.PDC - The type of contexts used to create predicates in predicate(Function).public interface SearchQueryResultContext<N extends SearchQueryContext<?,H,?>,H,PDC extends SearchPredicateFactoryContext>
| Modifier and Type | Method and Description |
|---|---|
N |
predicate(Function<? super PDC,SearchPredicateTerminalContext> 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 PDC,SearchPredicateTerminalContext> predicateContributor)
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.