Class ParsedTDigestPercentiles

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

public class ParsedTDigestPercentiles extends ParsedPercentiles implements Percentiles
  • Constructor Details

    • ParsedTDigestPercentiles

      public ParsedTDigestPercentiles()
  • 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
    • 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
    • fromXContent

      public static ParsedTDigestPercentiles fromXContent(org.elasticsearch.xcontent.XContentParser parser, String name) throws IOException
      Throws:
      IOException