java.io.Closeable
, java.lang.AutoCloseable
, org.apache.lucene.search.Collector
, Releasable
, SingleBucketAggregator
public class NestedAggregator extends BucketsAggregator implements SingleBucketAggregator
Aggregator.Parser, Aggregator.SubAggCollectionMode
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregators
NO_OP_COLLECTOR
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 void |
doPostCollection() |
Can be overridden by aggregator implementation to be called back when the collection phase ends.
|
LeafBucketCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx,
LeafBucketCollector sub) |
Get a
LeafBucketCollector for the given ctx, which should
delegate to the given collector. |
protected void |
preGetSubLeafCollectors() |
Can be overridden by aggregator implementations that like the perform an operation before the leaf collectors
of children aggregators are instantiated for the next segment.
|
descendsFromBucketAggregator
addRequestCircuitBreakerBytes, buildEmptySubAggregations, context, doClose, doPreCollection, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, subAggregator, subAggregators, toString
wrap
bucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectExistingBucket, consumeBucketsAndMaybeBreak, getDocCounts, grow, incrementBucketDocCount, maxBucketOrd
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bucketDocCount
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 void preGetSubLeafCollectors() throws java.io.IOException
AggregatorBase
preGetSubLeafCollectors
in class AggregatorBase
java.io.IOException
protected void doPostCollection() throws java.io.IOException
AggregatorBase
doPostCollection
in class AggregatorBase
java.io.IOException
public InternalAggregation buildAggregation(long owningBucketOrdinal) throws java.io.IOException
Aggregator
bucket
.buildAggregation
in class Aggregator
java.io.IOException
public InternalAggregation buildEmptyAggregation()
Aggregator
buildEmptyAggregation
in class Aggregator