Class InternalProfileCollector

  • All Implemented Interfaces:

    public class InternalProfileCollector
    extends java.lang.Object
    This class wraps a Lucene Collector and times the execution of: - setScorer() - collect() - doSetNextReader() - needsScores() InternalProfiler facilitates the linking of the Collector graph
    • Method Summary

      Modifier and Type Method Description
      CollectorResult getCollectorTree() getLeafCollector​(org.apache.lucene.index.LeafReaderContext context)  
      java.lang.String getName()  
      java.lang.String getReason()  
      long getTime()  
      boolean needsScores()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InternalProfileCollector

        public InternalProfileCollector​( collector,
                                        java.lang.String reason,
                                        java.util.List<InternalProfileCollector> children)
    • Method Detail

      • getTime

        public long getTime()
        the profiled time for this collector (inclusive of children)
      • getReason

        public java.lang.String getReason()
        a human readable "hint" about what this collector was used for
      • getName

        public java.lang.String getName()
        the lucene class name of the collector
      • getLeafCollector

        public getLeafCollector​(org.apache.lucene.index.LeafReaderContext context)
        Specified by:
        getLeafCollector in interface
      • needsScores

        public boolean needsScores()
        Specified by:
        needsScores in interface