public abstract class TermsAggregator extends BucketsAggregator
Modifier and Type | Class and Description |
---|---|
static class |
TermsAggregator.BucketCountThresholds |
Aggregator.BucketAggregationMode, Aggregator.Parser, Aggregator.SubAggCollectionMode
BucketCollector.BucketAnalysisCollector
Modifier and Type | Field and Description |
---|---|
protected Set<Aggregator> |
aggsUsedForSorting |
protected TermsAggregator.BucketCountThresholds |
bucketCountThresholds |
protected Terms.Order |
order |
protected Aggregator.SubAggCollectionMode |
subAggCollectMode |
bigArrays, bucketAggregationMode, COLLECT_MODE, collectableSubAggregators, context, depth, estimatedBucketCount, factories, name, parent, subAggregators
NO_OP_COLLECTOR
Constructor and Description |
---|
TermsAggregator(String name,
Aggregator.BucketAggregationMode bucketAggregationMode,
AggregatorFactories factories,
long estimatedBucketsCount,
AggregationContext context,
Aggregator parent,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
Terms.Order order,
Aggregator.SubAggCollectionMode subAggCollectMode) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
shouldDefer(Aggregator aggregator)
This method should be overidden by subclasses that want to defer calculation
of a child aggregation until a first pass is complete and a set of buckets has
been pruned.
|
bucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectBucketNoCounts, collectExistingBucket, getDocCounts, incrementBucketDocCount, maxBucketOrd
bucketAggregationMode, buildAggregation, buildEmptyAggregation, buildEmptySubAggregations, context, depth, doClose, doPostCollection, estimatedBucketCount, gatherAnalysis, hasParentBucketAggregator, name, parent, postCollection, preCollection, runDeferredCollections, shouldCollect, subAggregator, subAggregators
collect, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setNextReader
protected final TermsAggregator.BucketCountThresholds bucketCountThresholds
protected Terms.Order order
protected Set<Aggregator> aggsUsedForSorting
protected Aggregator.SubAggCollectionMode subAggCollectMode
public TermsAggregator(String name, Aggregator.BucketAggregationMode bucketAggregationMode, AggregatorFactories factories, long estimatedBucketsCount, AggregationContext context, Aggregator parent, TermsAggregator.BucketCountThresholds bucketCountThresholds, Terms.Order order, Aggregator.SubAggCollectionMode subAggCollectMode)
protected boolean shouldDefer(Aggregator aggregator)
Aggregator
Aggregator.runDeferredCollections(long...)
for the selected set of buckets that survive the pruning.shouldDefer
in class Aggregator
aggregator
- the child aggregatorCopyright © 2009–2015. All rights reserved.