Class BucketCollector
- java.lang.Object
-
- org.elasticsearch.search.aggregations.BucketCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector
- Direct Known Subclasses:
Aggregator,DeferringBucketCollector,MultiBucketCollector
public abstract class BucketCollector extends java.lang.Object implements org.apache.lucene.search.CollectorA Collector that can collect data in separate buckets.
-
-
Field Summary
Fields Modifier and Type Field Description static BucketCollectorNO_OP_COLLECTOR
-
Constructor Summary
Constructors Constructor Description BucketCollector()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract LeafBucketCollectorgetLeafCollector(org.apache.lucene.index.LeafReaderContext ctx)abstract voidpostCollection()Post-collection callback.abstract voidpreCollection()Pre collection callback.
-
-
-
Field Detail
-
NO_OP_COLLECTOR
public static final BucketCollector NO_OP_COLLECTOR
-
-
Method Detail
-
getLeafCollector
public abstract LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) throws java.io.IOException
- Specified by:
getLeafCollectorin interfaceorg.apache.lucene.search.Collector- Throws:
java.io.IOException
-
preCollection
public abstract void preCollection() throws java.io.IOExceptionPre collection callback.- Throws:
java.io.IOException
-
postCollection
public abstract void postCollection() throws java.io.IOExceptionPost-collection callback.- Throws:
java.io.IOException
-
-