public static class GlobalOrdinalsSignificantTermsAggregator.WithHash extends GlobalOrdinalsSignificantTermsAggregator
GlobalOrdinalsSignificantTermsAggregator.WithHash
GlobalOrdinalsStringTermsAggregator.LowCardinality
TermsAggregator.BucketCountThresholds
Aggregator.BucketAggregationMode, Aggregator.Parser, Aggregator.SubAggCollectionMode
BucketCollector.BucketAnalysisCollector
Modifier and Type | Field and Description |
---|---|
protected boolean |
showTermDocCountError |
numCollectedDocs, termsAggFactory
acceptedGlobalOrdinals, collector, globalOrds, includeExclude, valuesSource
aggsUsedForSorting, bucketCountThresholds, order, subAggCollectMode
bigArrays, bucketAggregationMode, COLLECT_MODE, collectableSubAggregators, context, depth, estimatedBucketCount, factories, name, parent, subAggregators
NO_OP_COLLECTOR
Constructor and Description |
---|
WithHash(String name,
AggregatorFactories factories,
ValuesSource.Bytes.WithOrdinals.FieldData valuesSource,
long estimatedBucketCount,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
IncludeExclude includeExclude,
AggregationContext aggregationContext,
Aggregator parent,
SignificantTermsAggregatorFactory termsAggFactory) |
Modifier and Type | Method and Description |
---|---|
void |
collect(int doc,
long owningBucketOrdinal)
Called during the query phase, to collect & aggregate the given document.
|
protected void |
doClose()
Release instance-specific data.
|
protected long |
getBucketOrd(long termOrd) |
buildAggregation, buildEmptyAggregation
copy, newCollector, setNextReader, shouldCollect
shouldDefer
bucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectBucketNoCounts, collectExistingBucket, getDocCounts, incrementBucketDocCount, maxBucketOrd
bucketAggregationMode, buildEmptySubAggregations, context, depth, doPostCollection, estimatedBucketCount, gatherAnalysis, hasParentBucketAggregator, name, parent, postCollection, preCollection, runDeferredCollections, subAggregator, subAggregators
wrap
public WithHash(String name, AggregatorFactories factories, ValuesSource.Bytes.WithOrdinals.FieldData valuesSource, long estimatedBucketCount, TermsAggregator.BucketCountThresholds bucketCountThresholds, IncludeExclude includeExclude, AggregationContext aggregationContext, Aggregator parent, SignificantTermsAggregatorFactory termsAggFactory)
public void collect(int doc, long owningBucketOrdinal) throws IOException
BucketCollector
collect
in class GlobalOrdinalsSignificantTermsAggregator
owningBucketOrdinal
- 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.IOException
protected long getBucketOrd(long termOrd)
getBucketOrd
in class GlobalOrdinalsStringTermsAggregator
protected void doClose()
Aggregator
doClose
in class GlobalOrdinalsSignificantTermsAggregator
Copyright © 2009–2015. All rights reserved.