public class GlobalOrdinalsSignificantTermsAggregator extends GlobalOrdinalsStringTermsAggregator
SignificantStringTermsAggregator.| Modifier and Type | Class and Description |
|---|---|
static class |
GlobalOrdinalsSignificantTermsAggregator.WithHash |
GlobalOrdinalsStringTermsAggregator.LowCardinalityTermsAggregator.BucketCountThresholdsAggregator.BucketAggregationMode, Aggregator.Parser, Aggregator.SubAggCollectionModeBucketCollector.BucketAnalysisCollector| Modifier and Type | Field and Description |
|---|---|
protected long |
numCollectedDocs |
protected boolean |
showTermDocCountError |
protected SignificantTermsAggregatorFactory |
termsAggFactory |
acceptedGlobalOrdinals, collector, globalOrds, includeExclude, valuesSourceaggsUsedForSorting, bucketCountThresholds, order, subAggCollectModebigArrays, bucketAggregationMode, COLLECT_MODE, collectableSubAggregators, context, depth, estimatedBucketCount, factories, name, parent, subAggregatorsNO_OP_COLLECTOR| Constructor and Description |
|---|
GlobalOrdinalsSignificantTermsAggregator(String name,
AggregatorFactories factories,
ValuesSource.Bytes.WithOrdinals.FieldData valuesSource,
long estimatedBucketCount,
long maxOrd,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
IncludeExclude includeExclude,
AggregationContext aggregationContext,
Aggregator parent,
SignificantTermsAggregatorFactory termsAggFactory) |
| Modifier and Type | Method and Description |
|---|---|
SignificantStringTerms |
buildAggregation(long owningBucketOrdinal) |
SignificantStringTerms |
buildEmptyAggregation() |
void |
collect(int doc,
long owningBucketOrdinal)
Called during the query phase, to collect & aggregate the given document.
|
protected void |
doClose()
Release instance-specific data.
|
copy, getBucketOrd, newCollector, setNextReader, shouldCollectshouldDeferbucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectBucketNoCounts, collectExistingBucket, getDocCounts, incrementBucketDocCount, maxBucketOrdbucketAggregationMode, buildEmptySubAggregations, context, depth, doPostCollection, estimatedBucketCount, gatherAnalysis, hasParentBucketAggregator, name, parent, postCollection, preCollection, runDeferredCollections, subAggregator, subAggregatorswrapprotected long numCollectedDocs
protected final SignificantTermsAggregatorFactory termsAggFactory
protected final boolean showTermDocCountError
public GlobalOrdinalsSignificantTermsAggregator(String name, AggregatorFactories factories, ValuesSource.Bytes.WithOrdinals.FieldData valuesSource, long estimatedBucketCount, long maxOrd, TermsAggregator.BucketCountThresholds bucketCountThresholds, IncludeExclude includeExclude, AggregationContext aggregationContext, Aggregator parent, SignificantTermsAggregatorFactory termsAggFactory)
public void collect(int doc,
long owningBucketOrdinal)
throws IOException
BucketCollectorcollect in class GlobalOrdinalsStringTermsAggregatorowningBucketOrdinal - 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 SignificantStringTerms buildAggregation(long owningBucketOrdinal)
buildAggregation in class GlobalOrdinalsStringTermsAggregatorpublic SignificantStringTerms buildEmptyAggregation()
protected void doClose()
AggregatordoClose in class AggregatorCopyright © 2009–2016. All rights reserved.