Class ProfileResult

java.lang.Object
org.elasticsearch.search.profile.ProfileResult
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public final class ProfileResult extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentObject
The result of a profiled *thing*, like a query or an aggregation. See AbstractProfiler for the statistic collection framework.
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getLuceneDescription

      public String getLuceneDescription()
      Retrieve the lucene description of this query (e.g. the "explain" text)
    • getQueryName

      public String getQueryName()
      Retrieve the name of the entry (e.g. "TermQuery" or "LongTermsAggregator")
    • getTimeBreakdown

      public Map<String,Long> getTimeBreakdown()
      The timing breakdown for this node.
    • getDebugInfo

      public Map<String,Object> getDebugInfo()
      The debug information about the profiled execution.
    • getTime

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

      public List<ProfileResult> getProfiledChildren()
      Returns a list of all profiled children queries
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromXContent

      public static ProfileResult fromXContent(org.elasticsearch.xcontent.XContentParser p) throws IOException
      Throws:
      IOException