java.io.Closeable
, java.lang.AutoCloseable
, org.apache.lucene.search.Collector
, Releasable
RangeAggregator.Unmapped
public abstract class NonCollectingAggregator extends AggregatorBase
Aggregator.Parser, Aggregator.SubAggCollectionMode
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregators
NO_OP_COLLECTOR
Modifier | Constructor | Description |
---|---|---|
protected |
NonCollectingAggregator(java.lang.String name,
SearchContext context,
Aggregator parent,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
|
protected |
NonCollectingAggregator(java.lang.String name,
SearchContext context,
Aggregator parent,
AggregatorFactories subFactories,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Modifier and Type | Method | Description |
---|---|---|
InternalAggregation |
buildAggregation(long owningBucketOrdinal) |
Build an aggregation for data that has been collected into
bucket . |
LeafBucketCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext reader,
LeafBucketCollector sub) |
Get a
LeafBucketCollector for the given ctx, which should
delegate to the given collector. |
buildEmptyAggregation, descendsFromBucketAggregator
addRequestCircuitBreakerBytes, buildEmptySubAggregations, close, context, doClose, doPostCollection, doPreCollection, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, preGetSubLeafCollectors, subAggregator, subAggregators, toString
wrap
protected NonCollectingAggregator(java.lang.String name, SearchContext context, Aggregator parent, AggregatorFactories subFactories, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
java.io.IOException
protected NonCollectingAggregator(java.lang.String name, SearchContext context, Aggregator parent, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
java.io.IOException
public final LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext reader, LeafBucketCollector sub)
AggregatorBase
LeafBucketCollector
for the given ctx, which should
delegate to the given collector.getLeafCollector
in class AggregatorBase
public final InternalAggregation buildAggregation(long owningBucketOrdinal)
Aggregator
bucket
.buildAggregation
in class Aggregator