public class SignificantLongTermsAggregator extends LongTermsAggregator
TermsAggregator.BucketCountThresholdsAggregator.BucketAggregationMode, Aggregator.Parser, Aggregator.SubAggCollectionModeBucketCollector.BucketAnalysisCollector| Modifier and Type | Field and Description |
|---|---|
protected long |
numCollectedDocs |
bucketOrds, formatter, valuesSourceaggsUsedForSorting, bucketCountThresholds, order, subAggCollectModebigArrays, bucketAggregationMode, COLLECT_MODE, collectableSubAggregators, context, depth, estimatedBucketCount, factories, name, parent, subAggregatorsNO_OP_COLLECTOR| Constructor and Description |
|---|
SignificantLongTermsAggregator(String name,
AggregatorFactories factories,
ValuesSource.Numeric valuesSource,
ValueFormat format,
long estimatedBucketCount,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
AggregationContext aggregationContext,
Aggregator parent,
SignificantTermsAggregatorFactory termsAggFactory,
IncludeExclude.LongFilter includeExclude) |
| Modifier and Type | Method and Description |
|---|---|
SignificantLongTerms |
buildAggregation(long owningBucketOrdinal) |
SignificantLongTerms |
buildEmptyAggregation() |
void |
collect(int doc,
long owningBucketOrdinal)
Called during the query phase, to collect & aggregate the given document.
|
void |
doClose()
Release instance-specific data.
|
getValues, setNextReader, shouldCollectshouldDeferbucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectBucketNoCounts, collectExistingBucket, getDocCounts, incrementBucketDocCount, maxBucketOrdbucketAggregationMode, buildEmptySubAggregations, context, depth, doPostCollection, estimatedBucketCount, gatherAnalysis, hasParentBucketAggregator, name, parent, postCollection, preCollection, runDeferredCollections, subAggregator, subAggregatorswrappublic SignificantLongTermsAggregator(String name, AggregatorFactories factories, ValuesSource.Numeric valuesSource, @Nullable ValueFormat format, long estimatedBucketCount, TermsAggregator.BucketCountThresholds bucketCountThresholds, AggregationContext aggregationContext, Aggregator parent, SignificantTermsAggregatorFactory termsAggFactory, IncludeExclude.LongFilter includeExclude)
public void collect(int doc,
long owningBucketOrdinal)
throws IOException
BucketCollectorcollect in class LongTermsAggregatorowningBucketOrdinal - 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 SignificantLongTerms buildAggregation(long owningBucketOrdinal)
buildAggregation in class LongTermsAggregatorpublic SignificantLongTerms buildEmptyAggregation()
buildEmptyAggregation in class LongTermsAggregatorpublic void doClose()
AggregatordoClose in class LongTermsAggregatorCopyright © 2009–2016. All rights reserved.