Class AggregatorFactory.MultiBucketAggregatorWrapper
- java.lang.Object
-
- org.elasticsearch.search.aggregations.BucketCollector
-
- org.elasticsearch.search.aggregations.Aggregator
-
- org.elasticsearch.search.aggregations.AggregatorFactory.MultiBucketAggregatorWrapper
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.lucene.search.Collector,Releasable
- Enclosing class:
- AggregatorFactory<AF extends AggregatorFactory<AF>>
public static final class AggregatorFactory.MultiBucketAggregatorWrapper extends Aggregator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.Aggregator
Aggregator.Parser, Aggregator.SubAggCollectionMode
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.BucketCollector
NO_OP_COLLECTOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalAggregationbuildAggregation(long bucket)Build an aggregation for data that has been collected intobucket.InternalAggregationbuildEmptyAggregation()Build an empty aggregation.voidclose()SearchContextcontext()Return theSearchContextattached with thisAggregator.LeafBucketCollectorgetLeafCollector(org.apache.lucene.index.LeafReaderContext ctx)java.lang.Class<?>getWrappedClass()java.lang.Stringname()Return the name of this aggregator.booleanneedsScores()Aggregatorparent()Return the parent aggregator.voidpostCollection()Post-collection callback.voidpreCollection()Pre collection callback.AggregatorsubAggregator(java.lang.String name)Return the sub aggregator with the provided name.-
Methods inherited from class org.elasticsearch.search.aggregations.Aggregator
descendsFromBucketAggregator
-
Methods inherited from class org.elasticsearch.search.aggregations.BucketCollector
wrap
-
-
-
-
Method Detail
-
getWrappedClass
public java.lang.Class<?> getWrappedClass()
-
name
public java.lang.String name()
Description copied from class:AggregatorReturn the name of this aggregator.- Specified by:
namein classAggregator
-
context
public SearchContext context()
Description copied from class:AggregatorReturn theSearchContextattached with thisAggregator.- Specified by:
contextin classAggregator
-
parent
public Aggregator parent()
Description copied from class:AggregatorReturn the parent aggregator.- Specified by:
parentin classAggregator
-
needsScores
public boolean needsScores()
-
subAggregator
public Aggregator subAggregator(java.lang.String name)
Description copied from class:AggregatorReturn the sub aggregator with the provided name.- Specified by:
subAggregatorin classAggregator
-
preCollection
public void preCollection() throws java.io.IOExceptionDescription copied from class:BucketCollectorPre collection callback.- Specified by:
preCollectionin classBucketCollector- Throws:
java.io.IOException
-
postCollection
public void postCollection() throws java.io.IOExceptionDescription copied from class:BucketCollectorPost-collection callback.- Specified by:
postCollectionin classBucketCollector- Throws:
java.io.IOException
-
getLeafCollector
public LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx)
- Specified by:
getLeafCollectorin interfaceorg.apache.lucene.search.Collector- Specified by:
getLeafCollectorin classBucketCollector
-
buildAggregation
public InternalAggregation buildAggregation(long bucket) throws java.io.IOException
Description copied from class:AggregatorBuild an aggregation for data that has been collected intobucket.- Specified by:
buildAggregationin classAggregator- Throws:
java.io.IOException
-
buildEmptyAggregation
public InternalAggregation buildEmptyAggregation()
Description copied from class:AggregatorBuild an empty aggregation.- Specified by:
buildEmptyAggregationin classAggregator
-
close
public void close()
-
-