public static class GlobalOrdinalsStringTermsAggregator.WithHash extends GlobalOrdinalsStringTermsAggregator
GlobalOrdinalsStringTermsAggregator
that rebases hashes in order to make them dense. Might be
useful in case few hashes are visited.GlobalOrdinalsStringTermsAggregator.LowCardinality, GlobalOrdinalsStringTermsAggregator.WithHash
TermsAggregator.BucketCountThresholds
Aggregator.BucketAggregationMode, Aggregator.Parser, Aggregator.SubAggCollectionMode
BucketCollector.BucketAnalysisCollector
Modifier and Type | Field and Description |
---|---|
protected boolean |
showTermDocCountError |
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,
long maxOrd,
Terms.Order order,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
IncludeExclude includeExclude,
AggregationContext aggregationContext,
Aggregator parent,
Aggregator.SubAggCollectionMode collectionMode,
boolean showTermDocCountError) |
Modifier and Type | Method and Description |
---|---|
InternalAggregation |
buildEmptyAggregation() |
protected void |
doClose()
Release instance-specific data.
|
protected long |
getBucketOrd(long termOrd) |
protected org.elasticsearch.search.aggregations.bucket.terms.GlobalOrdinalsStringTermsAggregator.Collector |
newCollector(org.apache.lucene.index.RandomAccessOrds ords) |
buildAggregation, collect, copy, 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, long maxOrd, Terms.Order order, TermsAggregator.BucketCountThresholds bucketCountThresholds, IncludeExclude includeExclude, AggregationContext aggregationContext, Aggregator parent, Aggregator.SubAggCollectionMode collectionMode, boolean showTermDocCountError)
protected org.elasticsearch.search.aggregations.bucket.terms.GlobalOrdinalsStringTermsAggregator.Collector newCollector(org.apache.lucene.index.RandomAccessOrds ords)
newCollector
in class GlobalOrdinalsStringTermsAggregator
protected long getBucketOrd(long termOrd)
getBucketOrd
in class GlobalOrdinalsStringTermsAggregator
protected void doClose()
Aggregator
doClose
in class Aggregator
public InternalAggregation buildEmptyAggregation()
buildEmptyAggregation
in class Aggregator
Copyright © 2009–2015. All rights reserved.