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 Set<Aggregator> |
aggsUsedForSorting |
protected TermsAggregator.BucketCountThresholds |
bucketCountThresholds |
protected Aggregator.SubAggCollectionMode |
collectMode |
protected Terms.Order |
order |
collectableSubAggregators, context, name, parent, subAggregatorsNO_OP_COLLECTOR| Constructor and Description |
|---|
TermsAggregator(String name,
AggregatorFactories factories,
AggregationContext context,
Aggregator parent,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
Terms.Order order,
Aggregator.SubAggCollectionMode collectMode,
List<PipelineAggregator> pipelineAggregators,
Map<String,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 TermsAggregator.BucketCountThresholds bucketCountThresholds
protected final Terms.Order order
protected final Set<Aggregator> aggsUsedForSorting
protected final Aggregator.SubAggCollectionMode collectMode
public TermsAggregator(String name, AggregatorFactories factories, AggregationContext context, Aggregator parent, TermsAggregator.BucketCountThresholds bucketCountThresholds, Terms.Order order, Aggregator.SubAggCollectionMode collectMode, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
IOExceptionprotected boolean shouldDefer(Aggregator aggregator)
AggregatorBaseAggregatorBase.runDeferredCollections(long...)
for the selected set of buckets that survive the pruning.shouldDefer in class AggregatorBaseaggregator - the child aggregatorCopyright © 2009–2017. All rights reserved.