public abstract class NonCollectingAggregator extends Aggregator
Aggregator.BucketAggregationMode, Aggregator.Parser, Aggregator.SubAggCollectionModeBucketCollector.BucketAnalysisCollectorbigArrays, bucketAggregationMode, COLLECT_MODE, collectableSubAggregators, context, depth, estimatedBucketCount, factories, name, parent, subAggregatorsNO_OP_COLLECTOR| Modifier | Constructor and Description |
|---|---|
protected |
NonCollectingAggregator(String name,
AggregationContext context,
Aggregator parent) |
protected |
NonCollectingAggregator(String name,
AggregationContext context,
Aggregator parent,
AggregatorFactories subFactories) |
| Modifier and Type | Method and Description |
|---|---|
InternalAggregation |
buildAggregation(long owningBucketOrdinal) |
void |
collect(int doc,
long owningBucketOrdinal)
Called during the query phase, to collect & aggregate the given document.
|
void |
setNextReader(org.apache.lucene.index.AtomicReaderContext reader) |
boolean |
shouldCollect() |
bucketAggregationMode, buildEmptyAggregation, buildEmptySubAggregations, close, context, depth, doClose, doPostCollection, estimatedBucketCount, gatherAnalysis, hasParentBucketAggregator, name, parent, postCollection, preCollection, runDeferredCollections, shouldDefer, subAggregator, subAggregatorswrapprotected NonCollectingAggregator(String name, AggregationContext context, Aggregator parent, AggregatorFactories subFactories)
protected NonCollectingAggregator(String name, AggregationContext context, Aggregator parent)
public final void setNextReader(org.apache.lucene.index.AtomicReaderContext reader)
public final boolean shouldCollect()
shouldCollect in class Aggregatorpublic final void collect(int doc,
long owningBucketOrdinal)
throws IOException
BucketCollectorcollect in class BucketCollectorowningBucketOrdinal - The ordinal of the bucket this aggregator belongs to, assuming this aggregator is not a top level aggregator.
Typically, aggregators with #bucketAggregationMode set to Aggregator.BucketAggregationMode.MULTI_BUCKETS
will heavily depend on this ordinal. Other aggregators may or may not use it and can see this ordinal as just
an extra information for the aggregation context. For top level aggregators, the ordinal will always be
equal to 0.IOExceptionpublic final InternalAggregation buildAggregation(long owningBucketOrdinal)
buildAggregation in class AggregatorCopyright © 2009–2016. All rights reserved.