Class NonCollectingAggregator
- java.lang.Object
-
- org.elasticsearch.search.aggregations.BucketCollector
-
- org.elasticsearch.search.aggregations.Aggregator
-
- org.elasticsearch.search.aggregations.AggregatorBase
-
- org.elasticsearch.search.aggregations.NonCollectingAggregator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Collector,Releasable
- Direct Known Subclasses:
RangeAggregator.Unmapped
public abstract class NonCollectingAggregator extends AggregatorBase
An aggregator that is not collected, this can typically be used when running an aggregation over a field that doesn't have a mapping.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.Aggregator
Aggregator.Parser, Aggregator.SubAggCollectionMode
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.AggregatorBase
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregators
-
Fields inherited from class org.elasticsearch.search.aggregations.BucketCollector
NO_OP_COLLECTOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNonCollectingAggregator(String name, SearchContext context, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)protectedNonCollectingAggregator(String name, SearchContext context, Aggregator parent, AggregatorFactories subFactories, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalAggregationbuildAggregation(long owningBucketOrdinal)Build an aggregation for data that has been collected intobucket.LeafBucketCollectorgetLeafCollector(LeafReaderContext reader, LeafBucketCollector sub)Get aLeafBucketCollectorfor the given ctx, which should delegate to the given collector.-
Methods inherited from class org.elasticsearch.search.aggregations.AggregatorBase
addRequestCircuitBreakerBytes, buildEmptySubAggregations, close, context, doClose, doPostCollection, doPreCollection, getLeafCollector, metaData, name, parent, pipelineAggregators, postCollection, preCollection, preGetSubLeafCollectors, scoreMode, subAggregator, subAggregators, toString
-
Methods inherited from class org.elasticsearch.search.aggregations.Aggregator
buildEmptyAggregation, descendsFromBucketAggregator
-
-
-
-
Constructor Detail
-
NonCollectingAggregator
protected NonCollectingAggregator(String name, SearchContext context, Aggregator parent, AggregatorFactories subFactories, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
- Throws:
IOException
-
NonCollectingAggregator
protected NonCollectingAggregator(String name, SearchContext context, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getLeafCollector
public final LeafBucketCollector getLeafCollector(LeafReaderContext reader, LeafBucketCollector sub)
Description copied from class:AggregatorBaseGet aLeafBucketCollectorfor the given ctx, which should delegate to the given collector.- Specified by:
getLeafCollectorin classAggregatorBase
-
buildAggregation
public final InternalAggregation buildAggregation(long owningBucketOrdinal)
Description copied from class:AggregatorBuild an aggregation for data that has been collected intobucket.- Specified by:
buildAggregationin classAggregator
-
-