public abstract class TermsAggregator extends BucketsAggregator
| Modifier and Type | Class and Description |
|---|---|
static class |
TermsAggregator.BucketCountThresholds |
Aggregator.Parser, Aggregator.SubAggCollectionMode| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<Aggregator> |
aggsUsedForSorting |
protected TermsAggregator.BucketCountThresholds |
bucketCountThresholds |
protected Aggregator.SubAggCollectionMode |
collectMode |
protected DocValueFormat |
format |
protected Terms.Order |
order |
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregatorsNO_OP_COLLECTOR| Constructor and Description |
|---|
TermsAggregator(java.lang.String name,
AggregatorFactories factories,
SearchContext context,
Aggregator parent,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
Terms.Order order,
DocValueFormat format,
Aggregator.SubAggCollectionMode collectMode,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
| 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, collectExistingBucket, getDocCounts, grow, incrementBucketDocCount, maxBucketOrdbuildEmptySubAggregations, context, doClose, doPostCollection, doPreCollection, getDeferringCollector, getLeafCollector, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, runDeferredCollections, subAggregator, subAggregators, toStringbuildAggregation, buildEmptyAggregation, descendsFromBucketAggregatorwrapprotected final DocValueFormat format
protected final TermsAggregator.BucketCountThresholds bucketCountThresholds
protected final Terms.Order order
protected final java.util.Set<Aggregator> aggsUsedForSorting
protected final Aggregator.SubAggCollectionMode collectMode
public TermsAggregator(java.lang.String name,
AggregatorFactories factories,
SearchContext context,
Aggregator parent,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
Terms.Order order,
DocValueFormat format,
Aggregator.SubAggCollectionMode collectMode,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData)
throws java.io.IOException
java.io.IOExceptionprotected boolean shouldDefer(Aggregator aggregator)
AggregatorBaseAggregatorBase.runDeferredCollections(long...)
for the selected set of buckets that survive the pruning.shouldDefer in class AggregatorBaseaggregator - the child aggregator