public abstract class TermsAggregator extends BucketsAggregator
| Modifier and Type | Class and Description |
|---|---|
static class |
TermsAggregator.BucketCountThresholds |
Aggregator.BucketAggregationMode, Aggregator.Parser, Aggregator.SubAggCollectionModeBucketCollector.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, subAggregatorsNO_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, maxBucketOrdbucketAggregationMode, buildAggregation, buildEmptyAggregation, buildEmptySubAggregations, context, depth, doClose, doPostCollection, estimatedBucketCount, gatherAnalysis, hasParentBucketAggregator, name, parent, postCollection, preCollection, runDeferredCollections, shouldCollect, subAggregator, subAggregatorscollect, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetNextReaderprotected 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)
AggregatorAggregator.runDeferredCollections(long...)
for the selected set of buckets that survive the pruning.shouldDefer in class Aggregatoraggregator - the child aggregatorCopyright © 2009–2016. All rights reserved.