Module org.apache.lucene.sandbox
Package org.apache.lucene.sandbox.search
Class ProfilerCollectorWrapper
java.lang.Object
org.apache.lucene.search.FilterCollector
org.apache.lucene.sandbox.search.ProfilerCollectorWrapper
- All Implemented Interfaces:
Collector
A collector that profiles how much time is spent calling it.
-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.FilterCollector
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLeafCollector(LeafReaderContext context) Create a newcollectorto collect the given context.longgetTime()Return the total time spent on this collector.Indicates what features are required from the scorer.Methods inherited from class org.apache.lucene.search.FilterCollector
setWeight, toString
-
Field Details
-
time
private long time
-
-
Constructor Details
-
ProfilerCollectorWrapper
ProfilerCollectorWrapper(Collector in) Sole constructor.
-
-
Method Details
-
scoreMode
Description copied from interface:CollectorIndicates what features are required from the scorer.- Specified by:
scoreModein interfaceCollector- Overrides:
scoreModein classFilterCollector
-
getLeafCollector
Description copied from interface:CollectorCreate a newcollectorto collect the given context.- Specified by:
getLeafCollectorin interfaceCollector- Overrides:
getLeafCollectorin classFilterCollector- Parameters:
context- next atomic reader context- Throws:
IOException
-
getTime
public long getTime()Return the total time spent on this collector.
-