public class GlobalOrdinalsStringTermsAggregator extends TermsAggregator
| Modifier and Type | Class and Description |
|---|---|
static interface |
GlobalOrdinalsStringTermsAggregator.GlobalOrdLookupFunction |
TermsAggregator.BucketCountThresholdsAggregator.Parser, Aggregator.SubAggCollectionMode| Modifier and Type | Field and Description |
|---|---|
protected org.apache.lucene.util.LongBitSet |
acceptedGlobalOrdinals |
protected IncludeExclude.OrdinalsFilter |
includeExclude |
protected GlobalOrdinalsStringTermsAggregator.GlobalOrdLookupFunction |
lookupGlobalOrd |
protected boolean |
showTermDocCountError |
protected long |
valueCount |
protected ValuesSource.Bytes.WithOrdinals |
valuesSource |
aggsUsedForSorting, bucketCountThresholds, collectMode, format, ordercollectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregatorsNO_OP_COLLECTOR| Constructor and Description |
|---|
GlobalOrdinalsStringTermsAggregator(java.lang.String name,
AggregatorFactories factories,
ValuesSource.Bytes.WithOrdinals valuesSource,
BucketOrder order,
DocValueFormat format,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
IncludeExclude.OrdinalsFilter includeExclude,
SearchContext context,
Aggregator parent,
boolean remapGlobalOrds,
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 |
buildAggregation(long owningBucketOrdinal)
Build an aggregation for data that has been collected into
bucket. |
InternalAggregation |
buildEmptyAggregation()
Build an empty aggregation.
|
protected static void |
copy(org.apache.lucene.util.BytesRef from,
org.apache.lucene.util.BytesRef to) |
protected void |
doClose()
Release instance-specific data.
|
protected long |
getBucketOrd(long globalOrd) |
LeafBucketCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx,
LeafBucketCollector sub)
Get a
LeafBucketCollector for the given ctx, which should
delegate to the given collector. |
bucketComparator, shouldDeferdoPreCollection, getDeferringCollector, runDeferredCollectionsbucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectExistingBucket, getDocCounts, grow, incrementBucketDocCount, maxBucketOrdaddRequestCircuitBreakerBytes, buildEmptySubAggregations, context, doPostCollection, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, subAggregator, subAggregators, toStringdescendsFromBucketAggregatorwrapprotected final ValuesSource.Bytes.WithOrdinals valuesSource
protected final IncludeExclude.OrdinalsFilter includeExclude
protected final org.apache.lucene.util.LongBitSet acceptedGlobalOrdinals
protected final long valueCount
protected final GlobalOrdinalsStringTermsAggregator.GlobalOrdLookupFunction lookupGlobalOrd
protected final boolean showTermDocCountError
public GlobalOrdinalsStringTermsAggregator(java.lang.String name,
AggregatorFactories factories,
ValuesSource.Bytes.WithOrdinals valuesSource,
BucketOrder order,
DocValueFormat format,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
IncludeExclude.OrdinalsFilter includeExclude,
SearchContext context,
Aggregator parent,
boolean remapGlobalOrds,
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.IOExceptionprotected final long getBucketOrd(long globalOrd)
public LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx, LeafBucketCollector sub) throws java.io.IOException
AggregatorBaseLeafBucketCollector for the given ctx, which should
delegate to the given collector.getLeafCollector in class AggregatorBasejava.io.IOExceptionprotected static void copy(org.apache.lucene.util.BytesRef from,
org.apache.lucene.util.BytesRef to)
public InternalAggregation buildAggregation(long owningBucketOrdinal) throws java.io.IOException
Aggregatorbucket.buildAggregation in class Aggregatorjava.io.IOExceptionprotected void doClose()
AggregatorBasedoClose in class AggregatorBasepublic InternalAggregation buildEmptyAggregation()
AggregatorbuildEmptyAggregation in class Aggregator