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
class ProfilerCollectorWrapper extends FilterCollector
A collector that profiles how much time is spent calling it.
-
-
Field Summary
Fields Modifier and Type Field Description private longtime-
Fields inherited from class org.apache.lucene.search.FilterCollector
in
-
-
Constructor Summary
Constructors Constructor Description ProfilerCollectorWrapper(Collector in)Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeafCollectorgetLeafCollector(LeafReaderContext context)Create a newcollectorto collect the given context.longgetTime()Return the total time spent on this collector.ScoreModescoreMode()Indicates what features are required from the scorer.-
Methods inherited from class org.apache.lucene.search.FilterCollector
toString
-
-
-
-
Constructor Detail
-
ProfilerCollectorWrapper
ProfilerCollectorWrapper(Collector in)
Sole constructor.
-
-
Method Detail
-
scoreMode
public ScoreMode scoreMode()
Description copied from interface:CollectorIndicates what features are required from the scorer.- Specified by:
scoreModein interfaceCollector- Overrides:
scoreModein classFilterCollector
-
getLeafCollector
public LeafCollector getLeafCollector(LeafReaderContext context) throws java.io.IOException
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:
java.io.IOException
-
getTime
public long getTime()
Return the total time spent on this collector.
-
-