Interface SearchQueryWhereStep<N extends SearchQueryOptionsStep<?,H,LOS,?,?>,H,LOS,PDF extends SearchPredicateFactory>
-
- Type Parameters:
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 inwhere(Function)
.LOS
- The type of the initial step of the loading options definition DSL accessible throughSearchQueryOptionsStep.loading(Consumer)
.
- All Known Subinterfaces:
ElasticsearchSearchQuerySelectStep<R,E,LOS>
,ElasticsearchSearchQueryWhereStep<H,LOS>
,LuceneSearchQuerySelectStep<R,E,LOS>
,LuceneSearchQueryWhereStep<H,LOS>
,SearchQuerySelectStep<N,R,E,LOS,PJF,PDF>
- All Known Implementing Classes:
AbstractDelegatingSearchQuerySelectStep
,AbstractExtendedSearchQueryOptionsStep
,AbstractSearchQueryOptionsStep
,AbstractSearchQuerySelectStep
public interface SearchQueryWhereStep<N extends SearchQueryOptionsStep<?,H,LOS,?,?>,H,LOS,PDF extends SearchPredicateFactory>
The step in a query definition where the predicate, i.e. the "WHERE" clause, can be set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description N
where(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)
Set the predicate for this query.N
where(SearchPredicate predicate)
Set the predicate for this query.
-
-
-
Method Detail
-
where
N where(SearchPredicate predicate)
Set the predicate for this query.- Parameters:
predicate
- ASearchPredicate
object obtained from the search scope.- Returns:
- The next step.
-
where
N where(Function<? super PDF,? extends PredicateFinalStep> predicateContributor)
Set the predicate for this query.- Parameters:
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.- Returns:
- The next step.
-
-