Class AggregatedQueryLeafProfilerResult

java.lang.Object
org.apache.lucene.sandbox.search.AggregatedQueryLeafProfilerResult

public class AggregatedQueryLeafProfilerResult extends Object
This class is the internal representation of a profiled Query, corresponding to a single node in the query tree. It is built after the query has finished executing and is merely a structured representation, rather than the entity that collects the timing profile.
  • Constructor Details

    • AggregatedQueryLeafProfilerResult

      public AggregatedQueryLeafProfilerResult(Thread thread, Map<String,Long> breakdown, long startTime, long totalTime)
  • Method Details

    • getThread

      public Thread getThread()
      Returns the thread that executed query for these leaves
      Returns:
      thread that executed query node
    • getTimeBreakdown

      public Map<String,Long> getTimeBreakdown()
      Returns the timing breakdown for this node.
      Returns:
      map containing time breakdown across different operation types
    • getStartTime

      public long getStartTime()
      Returns the start time for this query node execution.
      Returns:
      start time in nanoseconds
    • getTotalTime

      public long getTotalTime()
      Returns the total time (inclusive of children) for this query node.
      Returns:
      elapsed time in nanoseconds