public abstract class ParsedPercentiles extends ParsedAggregation implements java.lang.Iterable<Percentile>
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Double,java.lang.Double> |
percentiles |
protected java.util.Map<java.lang.Double,java.lang.String> |
percentilesAsString |
metadata
TYPED_KEYS_DELIMITER
EMPTY_PARAMS
Constructor and Description |
---|
ParsedPercentiles() |
Modifier and Type | Method and Description |
---|---|
protected static void |
declarePercentilesFields(ObjectParser<? extends ParsedPercentiles,java.lang.Void> objectParser) |
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
protected java.lang.Double |
getPercentile(double percent) |
protected java.lang.String |
getPercentileAsString(double percent) |
java.util.Iterator<Percentile> |
iterator() |
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType
isFragment
protected final java.util.Map<java.lang.Double,java.lang.Double> percentiles
protected final java.util.Map<java.lang.Double,java.lang.String> percentilesAsString
protected java.lang.Double getPercentile(double percent)
protected java.lang.String getPercentileAsString(double percent)
public java.util.Iterator<Percentile> iterator()
iterator
in interface java.lang.Iterable<Percentile>
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ParsedAggregation
java.io.IOException
protected static void declarePercentilesFields(ObjectParser<? extends ParsedPercentiles,java.lang.Void> objectParser)