Module org.elasticsearch.server
Interface AggregationReduceContext.Builder
- Enclosing class:
AggregationReduceContext
public static interface AggregationReduceContext.Builder
Builds
AggregationReduceContexts.-
Method Summary
Modifier and TypeMethodDescriptiondefault AggregationReduceContextBuild an AggregationReduceContext to perform the final reduction.forFinalReduction(Collection<SearchHits> topHitsToRelease) Build an AggregationReduceContext to perform the final reduction.default AggregationReduceContextBuild an AggregationReduceContext to perform a partial reduction.forPartialReduction(Collection<SearchHits> topHitsToRelease) Build an AggregationReduceContext to perform a partial reduction.
-
Method Details
-
forPartialReduction
Build an AggregationReduceContext to perform a partial reduction. -
forFinalReduction
Build an AggregationReduceContext to perform the final reduction. -
forPartialReduction
Build an AggregationReduceContext to perform a partial reduction.- Parameters:
topHitsToRelease- optional collection to collect SearchHits from top_hits aggs for release by SearchResponse
-
forFinalReduction
Build an AggregationReduceContext to perform the final reduction.- Parameters:
topHitsToRelease- optional collection to collect SearchHits from top_hits aggs for release by SearchResponse
-