Class InternalProfileCollector
java.lang.Object
org.elasticsearch.search.profile.query.InternalProfileCollector
- All Implemented Interfaces:
- org.apache.lucene.search.Collector
This class wraps a Lucene Collector and times the execution of:
 - setScorer()
 - collect()
 - doSetNextReader()
 - needsScores()
 InternalProfiler facilitates the linking of the Collector graph
- 
Constructor SummaryConstructorsConstructorDescriptionInternalProfileCollector(org.apache.lucene.search.Collector collector, String reason, List<InternalProfileCollector> children)
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.lucene.search.LeafCollectorgetLeafCollector(org.apache.lucene.index.LeafReaderContext context)getName()longgetTime()org.apache.lucene.search.ScoreMode
- 
Constructor Details- 
InternalProfileCollectorpublic InternalProfileCollector(org.apache.lucene.search.Collector collector, String reason, List<InternalProfileCollector> children)
 
- 
- 
Method Details- 
getTimepublic long getTime()- Returns:
- the profiled time for this collector (inclusive of children)
 
- 
getReason- Returns:
- a human readable "hint" about what this collector was used for
 
- 
getName- Returns:
- the lucene class name of the collector
 
- 
getLeafCollectorpublic org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context) throws IOException- Specified by:
- getLeafCollectorin interface- org.apache.lucene.search.Collector
- Throws:
- IOException
 
- 
scoreModepublic org.apache.lucene.search.ScoreMode scoreMode()- Specified by:
- scoreModein interface- org.apache.lucene.search.Collector
 
- 
getCollectorTree
 
-