java.io.Closeable, java.lang.AutoCloseable, org.apache.lucene.search.Collector, Releasablepublic static final class AggregatorFactory.MultiBucketAggregatorWrapper extends Aggregator
Aggregator.Parser, Aggregator.SubAggCollectionModeNO_OP_COLLECTOR| Modifier and Type | Method | Description |
|---|---|---|
InternalAggregation |
buildAggregation(long bucket) |
Build an aggregation for data that has been collected into
bucket. |
InternalAggregation |
buildEmptyAggregation() |
Build an empty aggregation.
|
void |
close() |
|
SearchContext |
context() |
Return the
SearchContext attached with this Aggregator. |
LeafBucketCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) |
|
java.lang.Class<?> |
getWrappedClass() |
|
java.lang.String |
name() |
Return the name of this aggregator.
|
boolean |
needsScores() |
|
Aggregator |
parent() |
Return the parent aggregator.
|
void |
postCollection() |
Post-collection callback.
|
void |
preCollection() |
Pre collection callback.
|
Aggregator |
subAggregator(java.lang.String name) |
Return the sub aggregator with the provided name.
|
descendsFromBucketAggregatorwrappublic java.lang.Class<?> getWrappedClass()
public java.lang.String name()
Aggregatorname in class Aggregatorpublic SearchContext context()
AggregatorSearchContext attached with this Aggregator.context in class Aggregatorpublic Aggregator parent()
Aggregatorparent in class Aggregatorpublic boolean needsScores()
public Aggregator subAggregator(java.lang.String name)
AggregatorsubAggregator in class Aggregatorpublic void preCollection()
throws java.io.IOException
BucketCollectorpreCollection in class BucketCollectorjava.io.IOExceptionpublic void postCollection()
throws java.io.IOException
BucketCollectorpostCollection in class BucketCollectorjava.io.IOExceptionpublic LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx)
getLeafCollector in interface org.apache.lucene.search.CollectorgetLeafCollector in class BucketCollectorpublic InternalAggregation buildAggregation(long bucket) throws java.io.IOException
Aggregatorbucket.buildAggregation in class Aggregatorjava.io.IOExceptionpublic InternalAggregation buildEmptyAggregation()
AggregatorbuildEmptyAggregation in class Aggregatorpublic void close()