Class ProfilingLeafBucketCollector
- java.lang.Object
-
- org.elasticsearch.search.aggregations.LeafBucketCollector
-
- org.elasticsearch.search.profile.aggregation.ProfilingLeafBucketCollector
-
- All Implemented Interfaces:
LeafCollector
public class ProfilingLeafBucketCollector extends LeafBucketCollector
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.LeafBucketCollector
NO_OP_COLLECTOR
-
-
Constructor Summary
Constructors Constructor Description ProfilingLeafBucketCollector(LeafBucketCollector delegate, AggregationProfileBreakdown profileBreakdown)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollect(int doc, long bucket)Collect the given doc in the given bucket.voidsetScorer(Scorable scorer)Called before successive calls toLeafCollector.collect(int).-
Methods inherited from class org.elasticsearch.search.aggregations.LeafBucketCollector
collect, wrap
-
-
-
-
Constructor Detail
-
ProfilingLeafBucketCollector
public ProfilingLeafBucketCollector(LeafBucketCollector delegate, AggregationProfileBreakdown profileBreakdown)
-
-
Method Detail
-
collect
public void collect(int doc, long bucket) throws IOExceptionDescription copied from class:LeafBucketCollectorCollect the given doc in the given bucket.- Specified by:
collectin classLeafBucketCollector- Throws:
IOException
-
setScorer
public void setScorer(Scorable scorer) throws IOException
Description copied from interface:LeafCollectorCalled before successive calls toLeafCollector.collect(int). Implementations that need the score of the current document (passed-in toLeafCollector.collect(int)), should save the passed-in Scorer and call scorer.score() when needed.- Specified by:
setScorerin interfaceLeafCollector- Overrides:
setScorerin classLeafBucketCollector- Throws:
IOException
-
-