java.io.Closeable, java.lang.AutoCloseable, org.apache.lucene.search.Collector, ReleasableGlobalOrdinalsSignificantTermsAggregatorpublic class GlobalOrdinalsStringTermsAggregator extends TermsAggregator
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
GlobalOrdinalsStringTermsAggregator.GlobalOrdLookupFunction |
Aggregator.Parser, Aggregator.SubAggCollectionModeTermsAggregator.BucketCountThresholds| Modifier and Type | Field | Description |
|---|---|---|
protected org.apache.lucene.util.LongBitSet |
acceptedGlobalOrdinals |
|
protected LongHash |
bucketOrds |
|
protected IncludeExclude.OrdinalsFilter |
includeExclude |
|
protected GlobalOrdinalsStringTermsAggregator.GlobalOrdLookupFunction |
lookupGlobalOrd |
|
protected boolean |
showTermDocCountError |
|
protected long |
valueCount |
|
protected ValuesSource.Bytes.WithOrdinals |
valuesSource |
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregatorsNO_OP_COLLECTORaggsUsedForSorting, bucketCountThresholds, collectMode, format, order| Constructor | 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 | 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.
|
LeafBucketCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx,
LeafBucketCollector sub) |
Get a
LeafBucketCollector for the given ctx, which should
delegate to the given collector. |
descendsFromBucketAggregatoraddRequestCircuitBreakerBytes, buildEmptySubAggregations, context, doPostCollection, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, preGetSubLeafCollectors, subAggregator, subAggregators, toStringwrapbucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectExistingBucket, consumeBucketsAndMaybeBreak, getDocCounts, grow, incrementBucketDocCount, maxBucketOrddescendsFromGlobalAggregator, doPreCollection, getDeferringCollector, runDeferredCollectionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbucketComparator, shouldDeferprotected 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 LongHash bucketOrds
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.IOExceptionpublic 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