Class ProfilerCollectorResult


  • public class ProfilerCollectorResult
    extends java.lang.Object
    Public class for profiled timings of the Collectors used in the search. Children CollectorResult's may be embedded inside of a parent CollectorResult
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<ProfilerCollectorResult> children
      A list of children collectors "embedded" inside this collector
      private java.lang.String collectorName
      A more friendly representation of the Collector's class name
      private java.lang.String reason
      A "hint" to help provide some context about this Collector
      private long time
      The total elapsed time for this Collector
    • Field Detail

      • collectorName

        private final java.lang.String collectorName
        A more friendly representation of the Collector's class name
      • reason

        private final java.lang.String reason
        A "hint" to help provide some context about this Collector
      • time

        private final long time
        The total elapsed time for this Collector
      • children

        private final java.util.List<ProfilerCollectorResult> children
        A list of children collectors "embedded" inside this collector
    • Constructor Detail

      • ProfilerCollectorResult

        public ProfilerCollectorResult​(java.lang.String collectorName,
                                       java.lang.String reason,
                                       java.lang.Long time,
                                       java.util.List<ProfilerCollectorResult> children)
    • Method Detail

      • getTime

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

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

        public java.lang.String getName()
        Returns:
        the lucene class name of the collector
      • getProfiledChildren

        public java.util.List<ProfilerCollectorResult> getProfiledChildren()
        Returns:
        a list of children collectors