Class SearchAggregationDslContext<SC extends SearchAggregationIndexScope<?>,PDF extends SearchPredicateFactory>
- java.lang.Object
-
- org.hibernate.search.engine.search.aggregation.dsl.spi.SearchAggregationDslContext<SC,PDF>
-
- Type Parameters:
SC- The type of the backend-specific search scope.PDF- The type of factory used to create predicates inSortFilterStep.filter(Function).
public class SearchAggregationDslContext<SC extends SearchAggregationIndexScope<?>,PDF extends SearchPredicateFactory> extends Object
Represents the current context in the search DSL, including in particular the search scope and the aggregation builder factory.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PDFpredicateFactory()SearchAggregationDslContext<SC,PDF>rescope(SC newScope, PDF newPredicateFactory)static <SC extends SearchAggregationIndexScope<?>,PDF extends SearchPredicateFactory>
SearchAggregationDslContext<SC,PDF>root(SC scope, PDF predicateFactory)SCscope()
-
-
-
Method Detail
-
root
public static <SC extends SearchAggregationIndexScope<?>,PDF extends SearchPredicateFactory> SearchAggregationDslContext<SC,PDF> root(SC scope, PDF predicateFactory)
-
scope
public SC scope()
- Returns:
- The search scope.
-
rescope
public SearchAggregationDslContext<SC,PDF> rescope(SC newScope, PDF newPredicateFactory)
- Parameters:
newScope- The new scope for the new DSL context.newPredicateFactory- The new predicate factory for the new DSL context.- Returns:
- A copy of this DSL context with its scope and predicate factory replaced with the given ones.
-
predicateFactory
public PDF predicateFactory()
- Returns:
- The predicate factory. Will always return the exact same instance.
-
-