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
Modifier and TypeMethodDescriptionstatic <SC extends SearchAggregationIndexScope<?>,
PDF extends SearchPredicateFactory>
SearchAggregationDslContext<SC, PDF> root
(SC scope, PDF predicateFactory) scope()
-
Method Details
-
root
public static <SC extends SearchAggregationIndexScope<?>,PDF extends SearchPredicateFactory> SearchAggregationDslContext<SC,PDF> root(SC scope, PDF predicateFactory) -
scope
- Returns:
- The search scope.
-
rescope
- 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
- Returns:
- The predicate factory. Will always return the exact same instance.
-