Interface SearchQueryWhereStep<SR,N extends SearchQueryOptionsStep<SR,?,H,LOS,?,?>,H,LOS,PDF extends TypedSearchPredicateFactory<SR>>
- Type Parameters:
SR
- Scope root type.N
- The type of the next step, returned after a predicate is defined.H
- The type of hits for the created query.LOS
- The type of the initial step of the loading options definition DSL accessible throughSearchQueryOptionsStep.loading(Consumer)
.PDF
- The type of factory used to create predicates inwhere(Function)
.
- All Known Subinterfaces:
ElasticsearchSearchQuerySelectStep<SR,
,R, E, LOS> ElasticsearchSearchQueryWhereStep<SR,
,H, LOS> LuceneSearchQuerySelectStep<SR,
,R, E, LOS> LuceneSearchQueryWhereStep<SR,
,H, LOS> SearchQuerySelectStep<SR,
N, R, E, LOS, PJF, PDF>
- All Known Implementing Classes:
AbstractDelegatingSearchQuerySelectStep
,AbstractExtendedSearchQueryOptionsStep
,AbstractSearchQueryOptionsStep
,AbstractSearchQuerySelectStep
public interface SearchQueryWhereStep<SR,N extends SearchQueryOptionsStep<SR,?,H,LOS,?,?>,H,LOS,PDF extends TypedSearchPredicateFactory<SR>>
The step in a query definition where the predicate, i.e. the "WHERE" clause, can be set.
-
Method Summary
Modifier and TypeMethodDescriptionwhere
(BiConsumer<? super PDF, ? super SimpleBooleanPredicateClausesCollector<SR, ?>> predicateContributor) Set the predicate for this query.where
(Function<? super PDF, ? extends PredicateFinalStep> predicateContributor) Set the predicate for this query.where
(SearchPredicate predicate) Set the predicate for this query.
-
Method Details
-
where
Set the predicate for this query.- Parameters:
predicate
- ASearchPredicate
object obtained from the search scope.- Returns:
- The next step.
-
where
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.
-
where
N where(BiConsumer<? super PDF, ? super SimpleBooleanPredicateClausesCollector<SR, ?>> predicateContributor) Set the predicate for this query.- Parameters:
predicateContributor
- A consumer that will use the factory passed in parameter to create predicates and add them as clauses to the collector passed in parameter. Should generally be a lambda expression. The resulting root predicate will have to match all clauses.- Returns:
- The next step.
- See Also:
-