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.Parser, Aggregator.SubAggCollectionMode
Modifier and Type | Field and Description |
---|---|
protected boolean |
showTermDocCountError |
acceptedGlobalOrdinals, globalOrds, includeExclude, valuesSource
aggsUsedForSorting, bucketCountThresholds, collectMode, format, order
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregators
NO_OP_COLLECTOR
Constructor and Description |
---|
WithHash(java.lang.String name,
AggregatorFactories factories,
ValuesSource.Bytes.WithOrdinals valuesSource,
Terms.Order order,
DocValueFormat format,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
IncludeExclude.OrdinalsFilter includeExclude,
AggregationContext aggregationContext,
Aggregator parent,
Aggregator.SubAggCollectionMode collectionMode,
boolean showTermDocCountError,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Modifier and Type | Method and Description |
---|---|
InternalAggregation |
buildEmptyAggregation()
Build an empty aggregation.
|
protected void |
doClose()
Release instance-specific data.
|
protected long |
getBucketOrd(long termOrd) |
protected LeafBucketCollector |
newCollector(org.apache.lucene.index.RandomAccessOrds ords,
LeafBucketCollector sub) |
buildAggregation, copy, getLeafCollector
shouldDefer
bucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectExistingBucket, getDocCounts, grow, incrementBucketDocCount, maxBucketOrd
buildEmptySubAggregations, context, doPostCollection, doPreCollection, getDeferringCollector, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, runDeferredCollections, subAggregator, subAggregators, toString
descendsFromBucketAggregator
wrap
public WithHash(java.lang.String name, AggregatorFactories factories, ValuesSource.Bytes.WithOrdinals valuesSource, Terms.Order order, DocValueFormat format, TermsAggregator.BucketCountThresholds bucketCountThresholds, IncludeExclude.OrdinalsFilter includeExclude, AggregationContext aggregationContext, Aggregator parent, Aggregator.SubAggCollectionMode collectionMode, boolean showTermDocCountError, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
java.io.IOException
protected LeafBucketCollector newCollector(org.apache.lucene.index.RandomAccessOrds ords, LeafBucketCollector sub)
newCollector
in class GlobalOrdinalsStringTermsAggregator
protected long getBucketOrd(long termOrd)
getBucketOrd
in class GlobalOrdinalsStringTermsAggregator
protected void doClose()
AggregatorBase
doClose
in class AggregatorBase
public InternalAggregation buildEmptyAggregation()
Aggregator
buildEmptyAggregation
in class Aggregator