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
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
-
Method Summary
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.Aggregatorparent()Return the parent aggregator.voidpostCollection()Post-collection callback.voidpreCollection()Pre collection callback.org.apache.lucene.search.ScoreModescoreMode()AggregatorsubAggregator(java.lang.String name)Return the sub aggregator with the provided name.Methods inherited from class org.elasticsearch.search.aggregations.Aggregator
descendsFromBucketAggregator
-
Method Details
-
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
Description copied from class:AggregatorReturn theSearchContextattached with thisAggregator.- Specified by:
contextin classAggregator
-
parent
Description copied from class:AggregatorReturn the parent aggregator.- Specified by:
parentin classAggregator
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode() -
subAggregator
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
- Specified by:
getLeafCollectorin interfaceorg.apache.lucene.search.Collector- Specified by:
getLeafCollectorin classBucketCollector
-
buildAggregation
Description copied from class:AggregatorBuild an aggregation for data that has been collected intobucket.- Specified by:
buildAggregationin classAggregator- Throws:
java.io.IOException
-
buildEmptyAggregation
Description copied from class:AggregatorBuild an empty aggregation.- Specified by:
buildEmptyAggregationin classAggregator
-
close
public void close()
-