Class BucketCollector
java.lang.Object
org.elasticsearch.search.aggregations.BucketCollector
- All Implemented Interfaces:
org.apache.lucene.search.Collector
- Direct Known Subclasses:
Aggregator
,DeferringBucketCollector
,MultiBucketCollector
A Collector that can collect data in separate buckets.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract LeafBucketCollector
getLeafCollector
(org.apache.lucene.index.LeafReaderContext ctx) abstract void
Post-collection callback.abstract void
Pre collection callback.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.search.Collector
scoreMode
-
Field Details
-
NO_OP_COLLECTOR
-
-
Constructor Details
-
BucketCollector
public BucketCollector()
-
-
Method Details
-
getLeafCollector
public abstract LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) throws IOException - Specified by:
getLeafCollector
in interfaceorg.apache.lucene.search.Collector
- Throws:
IOException
-
preCollection
Pre collection callback.- Throws:
IOException
-
postCollection
Post-collection callback.- Throws:
IOException
-