Class ParsedPercentiles
- java.lang.Object
-
- org.elasticsearch.search.aggregations.ParsedAggregation
-
- org.elasticsearch.search.aggregations.metrics.ParsedPercentiles
-
- All Implemented Interfaces:
Iterable<Percentile>,ToXContent,ToXContentFragment,Aggregation
- Direct Known Subclasses:
ParsedHDRPercentileRanks,ParsedHDRPercentiles,ParsedPercentilesBucket,ParsedTDigestPercentileRanks,ParsedTDigestPercentiles
public abstract class ParsedPercentiles extends ParsedAggregation implements Iterable<Percentile>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Double,Double>percentilesprotected Map<Double,String>percentilesAsString-
Fields inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
metadata
-
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description ParsedPercentiles()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voiddeclarePercentilesFields(ObjectParser<? extends ParsedPercentiles,Void> objectParser)protected XContentBuilderdoXContentBody(XContentBuilder builder, ToXContent.Params params)protected DoublegetPercentile(double percent)protected StringgetPercentileAsString(double percent)Iterator<Percentile>iterator()-
Methods inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getType
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Method Detail
-
getPercentile
protected Double getPercentile(double percent)
-
getPercentileAsString
protected String getPercentileAsString(double percent)
-
iterator
public Iterator<Percentile> iterator()
- Specified by:
iteratorin interfaceIterable<Percentile>
-
doXContentBody
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
doXContentBodyin classParsedAggregation- Throws:
IOException
-
declarePercentilesFields
protected static void declarePercentilesFields(ObjectParser<? extends ParsedPercentiles,Void> objectParser)
-
-