Class LeafBucketCollector
- java.lang.Object
-
- org.elasticsearch.search.aggregations.LeafBucketCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.LeafCollector
- Direct Known Subclasses:
LeafBucketCollectorBase,ProfilingLeafBucketCollector
public abstract class LeafBucketCollector extends java.lang.Object implements org.apache.lucene.search.LeafCollectorPer-leaf bucket collector.
-
-
Field Summary
Fields Modifier and Type Field Description static LeafBucketCollectorNO_OP_COLLECTOR
-
Constructor Summary
Constructors Constructor Description LeafBucketCollector()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcollect(int doc)abstract voidcollect(int doc, long bucket)Collect the given doc in the given bucket.voidsetScorer(org.apache.lucene.search.Scorer scorer)static LeafBucketCollectorwrap(java.lang.Iterable<LeafBucketCollector> collectors)
-
-
-
Field Detail
-
NO_OP_COLLECTOR
public static final LeafBucketCollector NO_OP_COLLECTOR
-
-
Method Detail
-
wrap
public static LeafBucketCollector wrap(java.lang.Iterable<LeafBucketCollector> collectors)
-
collect
public abstract void collect(int doc, long bucket) throws java.io.IOExceptionCollect the given doc in the given bucket.- Throws:
java.io.IOException
-
collect
public final void collect(int doc) throws java.io.IOException- Specified by:
collectin interfaceorg.apache.lucene.search.LeafCollector- Throws:
java.io.IOException
-
setScorer
public void setScorer(org.apache.lucene.search.Scorer scorer) throws java.io.IOException- Specified by:
setScorerin interfaceorg.apache.lucene.search.LeafCollector- Throws:
java.io.IOException
-
-