public class MatrixStatsAggregator extends MetricsAggregator
Aggregator.Parser, Aggregator.SubAggCollectionMode
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregators
NO_OP_COLLECTOR
Constructor and Description |
---|
MatrixStatsAggregator(java.lang.String name,
java.util.Map<java.lang.String,ValuesSource.Numeric> valuesSources,
SearchContext context,
Aggregator parent,
MultiValueMode multiValueMode,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Modifier and Type | Method and Description |
---|---|
InternalAggregation |
buildAggregation(long bucket) |
InternalAggregation |
buildEmptyAggregation() |
void |
doClose() |
LeafBucketCollector |
getLeafCollector(LeafReaderContext ctx,
LeafBucketCollector sub) |
boolean |
needsScores() |
buildEmptySubAggregations, close, context, doPostCollection, doPreCollection, getDeferringCollector, getLeafCollector, metaData, name, parent, pipelineAggregators, postCollection, preCollection, runDeferredCollections, shouldDefer, subAggregator, subAggregators, toString
descendsFromBucketAggregator
wrap
public MatrixStatsAggregator(java.lang.String name, java.util.Map<java.lang.String,ValuesSource.Numeric> valuesSources, SearchContext context, Aggregator parent, MultiValueMode multiValueMode, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
java.io.IOException
public boolean needsScores()
needsScores
in interface Collector
needsScores
in class AggregatorBase
public LeafBucketCollector getLeafCollector(LeafReaderContext ctx, LeafBucketCollector sub) throws java.io.IOException
getLeafCollector
in class AggregatorBase
java.io.IOException
public InternalAggregation buildAggregation(long bucket)
buildAggregation
in class Aggregator
public InternalAggregation buildEmptyAggregation()
buildEmptyAggregation
in class Aggregator
public void doClose()
doClose
in class AggregatorBase