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,
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, 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 IOException
setScorer in interface org.apache.lucene.search.LeafCollectorsetScorer in class LeafBucketCollectorIOExceptionpublic void collect(int doc,
long bucket)
throws IOException
LeafBucketCollectorcollect in class LeafBucketCollectorIOExceptionCopyright © 2009–2017. All rights reserved.