Class ParsedPercentiles

java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.search.aggregations.metrics.ParsedPercentiles
All Implemented Interfaces:
Iterable<Percentile>, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment, Aggregation
Direct Known Subclasses:
ParsedHDRPercentileRanks, ParsedHDRPercentiles, ParsedPercentilesBucket, ParsedTDigestPercentileRanks, ParsedTDigestPercentiles

public abstract class ParsedPercentiles extends ParsedAggregation implements Iterable<Percentile>
  • Field Details

  • Constructor Details

    • ParsedPercentiles

      public ParsedPercentiles()
  • Method Details

    • getPercentile

      protected Double getPercentile(double percent)
    • getPercentileAsString

      protected String getPercentileAsString(double percent)
    • iterator

      public Iterator<Percentile> iterator()
      Specified by:
      iterator in interface Iterable<Percentile>
    • doXContentBody

      protected org.elasticsearch.common.xcontent.XContentBuilder doXContentBody(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      doXContentBody in class ParsedAggregation
      Throws:
      IOException
    • declarePercentilesFields

      protected static void declarePercentilesFields(org.elasticsearch.common.xcontent.ObjectParser<? extends ParsedPercentiles,Void> objectParser)