public class LeafBucketCollectorBase extends LeafBucketCollector
LeafBucketCollector that delegates all calls to the sub leaf
aggregator and sets the scorer on its source of values if it implements
ScorerAware.NO_OP_COLLECTOR| Constructor and Description |
|---|
LeafBucketCollectorBase(LeafBucketCollector sub,
java.lang.Object values) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc,
long bucket)
Collect the given doc in the given bucket.
|
void |
setScorer(org.apache.lucene.search.Scorer s) |
collect, wrappublic LeafBucketCollectorBase(LeafBucketCollector sub, java.lang.Object values)
sub - The leaf collector for sub aggregations.values - The values. ScorerAware.setScorer(org.apache.lucene.search.Scorer) will be called automatically on them if they implement ScorerAware.public void setScorer(org.apache.lucene.search.Scorer s)
throws java.io.IOException
setScorer in interface org.apache.lucene.search.LeafCollectorsetScorer in class LeafBucketCollectorjava.io.IOExceptionpublic void collect(int doc,
long bucket)
throws java.io.IOException
LeafBucketCollectorcollect in class LeafBucketCollectorjava.io.IOException