Class ParsedHDRPercentiles

All Implemented Interfaces:
Iterable<Percentile>, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment, Aggregation, NumericMetricsAggregation, NumericMetricsAggregation.MultiValue, Percentiles

public class ParsedHDRPercentiles extends ParsedPercentiles implements Percentiles
  • Constructor Details

    • ParsedHDRPercentiles

      public ParsedHDRPercentiles()
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface Aggregation
      Returns:
      a string representing the type of the aggregation. This type is added to the aggregation name in the response, so that it can later be used by clients to determine type of the aggregation and parse it into the proper object.
    • percentile

      public double percentile(double percent)
      Description copied from interface: Percentiles
      Return the value associated with the provided percentile.
      Specified by:
      percentile in interface Percentiles
    • percentileAsString

      public String percentileAsString(double percent)
      Description copied from interface: Percentiles
      Return the value associated with the provided percentile as a String.
      Specified by:
      percentileAsString in interface Percentiles
    • fromXContent

      public static ParsedHDRPercentiles fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, String name) throws IOException
      Throws:
      IOException
    • value

      public double value(String name)
      Description copied from interface: NumericMetricsAggregation.MultiValue
      Return the result of 1 value by name
      Specified by:
      value in interface NumericMetricsAggregation.MultiValue
      Parameters:
      name - of the value
      Returns:
      the value
    • valueNames

      public Iterable<String> valueNames()
      Description copied from interface: NumericMetricsAggregation.MultiValue
      Return an iterable over all value names this multi value aggregation provides. The iterable might be created on the fly, if you need to call this multiple times, please cache the result in a variable on caller side..
      Specified by:
      valueNames in interface NumericMetricsAggregation.MultiValue
      Returns:
      iterable over all value names