Class CollectorResult

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

public class CollectorResult extends Object implements org.elasticsearch.common.xcontent.ToXContentObject, Writeable
Public interface and serialization container for profiled timings of the Collectors used in the search. Children CollectorResult's may be embedded inside of a parent CollectorResult
  • Field Details

  • 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
    • 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
    • getProfiledChildren

      public List<CollectorResult> getProfiledChildren()
      Returns:
      a list of children collectors
    • toXContent

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

      public static CollectorResult fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException