Class AbstractProfileBreakdown<T extends Enum<T>>

java.lang.Object
org.elasticsearch.search.profile.AbstractProfileBreakdown<T>
Direct Known Subclasses:
AggregationProfileBreakdown, DfsProfiler, QueryProfileBreakdown

public abstract class AbstractProfileBreakdown<T extends Enum<T>> extends Object
A record of timings for the various operations that may happen during query execution. A node's time may be composed of several internal attributes (rewriting, weighting, scoring, etc).
  • Constructor Details

    • AbstractProfileBreakdown

      public AbstractProfileBreakdown(Class<T> clazz)
      Sole constructor.
  • Method Details

    • getNewTimer

      public Timer getNewTimer(T timingType)
      Parameters:
      timingType - the timing type to create a new Timer for
      Returns:
      a new Timer instance
    • toBreakdownMap

      public final Map<String,Long> toBreakdownMap()
      Build a timing count breakdown. If multiple timers where requested from different locations or threads from this profile breakdown, the approximation will contain the sum of each timers approximate time and count.
    • toDebugMap

      protected Map<String,Object> toDebugMap()
      Fetch extra debugging information.
    • toNodeTime

      public final long toNodeTime()
      Returns:
      the total sum of timers approximate times across all timing types