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, wrap
public 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.LeafCollector
setScorer
in class LeafBucketCollector
java.io.IOException
public void collect(int doc, long bucket) throws java.io.IOException
LeafBucketCollector
collect
in class LeafBucketCollector
java.io.IOException