Class InternalProfileCollector

  • All Implemented Interfaces:
    Collector

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

      • getTime

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

        public String getReason()
        Returns:
        a human readable "hint" about what this collector was used for
      • getName

        public String getName()
        Returns:
        the lucene class name of the collector
      • scoreMode

        public ScoreMode scoreMode()
        Description copied from interface: Collector
        Indicates what features are required from the scorer.
        Specified by:
        scoreMode in interface Collector