java.io.Closeable
, java.lang.AutoCloseable
, org.apache.lucene.search.Collector
, Releasable
GlobalOrdinalsSignificantTermsAggregator
public class GlobalOrdinalsStringTermsAggregator extends TermsAggregator
Modifier and Type | Class | Description |
---|---|---|
static interface |
GlobalOrdinalsStringTermsAggregator.GlobalOrdLookupFunction |
Aggregator.Parser, Aggregator.SubAggCollectionMode
TermsAggregator.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, subAggregators
NO_OP_COLLECTOR
aggsUsedForSorting, 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. |
descendsFromBucketAggregator
addRequestCircuitBreakerBytes, buildEmptySubAggregations, context, doPostCollection, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, preGetSubLeafCollectors, subAggregator, subAggregators, toString
wrap
bucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectExistingBucket, consumeBucketsAndMaybeBreak, getDocCounts, grow, incrementBucketDocCount, maxBucketOrd
descendsFromGlobalAggregator, doPreCollection, getDeferringCollector, runDeferredCollections
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bucketComparator, shouldDefer
protected 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.IOException
public LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx, LeafBucketCollector sub) throws java.io.IOException
AggregatorBase
LeafBucketCollector
for the given ctx, which should
delegate to the given collector.getLeafCollector
in class AggregatorBase
java.io.IOException
protected static void copy(org.apache.lucene.util.BytesRef from, org.apache.lucene.util.BytesRef to)
public InternalAggregation buildAggregation(long owningBucketOrdinal) throws java.io.IOException
Aggregator
bucket
.buildAggregation
in class Aggregator
java.io.IOException
protected void doClose()
AggregatorBase
doClose
in class AggregatorBase
public InternalAggregation buildEmptyAggregation()
Aggregator
buildEmptyAggregation
in class Aggregator