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 newcollector
to collect the given context.long
getTime()
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
toString
-
Field Details
-
time
private long time
-
-
Constructor Details
-
ProfilerCollectorWrapper
ProfilerCollectorWrapper(Collector in) Sole constructor.
-
-
Method Details
-
scoreMode
Description copied from interface:Collector
Indicates what features are required from the scorer.- Specified by:
scoreMode
in interfaceCollector
- Overrides:
scoreMode
in classFilterCollector
-
getLeafCollector
Description copied from interface:Collector
Create a newcollector
to collect the given context.- Specified by:
getLeafCollector
in interfaceCollector
- Overrides:
getLeafCollector
in classFilterCollector
- Parameters:
context
- next atomic reader context- Throws:
IOException
-
getTime
public long getTime()Return the total time spent on this collector.
-