Class InternalPercentilesBucket
- java.lang.Object
-
- org.elasticsearch.search.aggregations.InternalAggregation
-
- org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
-
- org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.MultiValue
-
- org.elasticsearch.search.aggregations.pipeline.InternalPercentilesBucket
-
- All Implemented Interfaces:
Iterable<Percentile>,NamedWriteable,Writeable,ToXContent,ToXContentFragment,Aggregation,NumericMetricsAggregation,NumericMetricsAggregation.MultiValue,Percentiles,PercentilesBucket
public class InternalPercentilesBucket extends InternalNumericMetricsAggregation.MultiValue implements PercentilesBucket
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInternalPercentilesBucket.Iter-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
InternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValue
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContext
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
format
-
Fields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metaData, name
-
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
-
Fields inherited from interface org.elasticsearch.search.aggregations.metrics.Percentiles
TYPE_NAME
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description InternalPercentilesBucket(StreamInput in)Read from a stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalMaxdoReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)protected voiddoWriteTo(StreamOutput out)XContentBuilderdoXContentBody(XContentBuilder builder, ToXContent.Params params)booleanequals(Object obj)StringgetWriteableName()Returns the name of the writeable objectinthashCode()Iterator<Percentile>iterator()doublepercentile(double percent)Return the value associated with the provided percentile.StringpercentileAsString(double percent)Return the value associated with the provided percentile as a String.doublevalue(String name)-
Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.MultiValue
getProperty, valueAsString
-
Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetaData, getName, getProperty, getType, isMapped, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetaData, getName, getType
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
InternalPercentilesBucket
public InternalPercentilesBucket(StreamInput in) throws IOException
Read from a stream.- Throws:
IOException
-
-
Method Detail
-
doWriteTo
protected void doWriteTo(StreamOutput out) throws IOException
- Specified by:
doWriteToin classInternalAggregation- Throws:
IOException
-
getWriteableName
public String getWriteableName()
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
percentile
public double percentile(double percent) throws IllegalArgumentExceptionDescription copied from interface:PercentilesReturn the value associated with the provided percentile.- Specified by:
percentilein interfacePercentiles- Throws:
IllegalArgumentException
-
percentileAsString
public String percentileAsString(double percent)
Description copied from interface:PercentilesReturn the value associated with the provided percentile as a String.- Specified by:
percentileAsStringin interfacePercentiles
-
iterator
public Iterator<Percentile> iterator()
- Specified by:
iteratorin interfaceIterable<Percentile>
-
value
public double value(String name)
- Specified by:
valuein classInternalNumericMetricsAggregation.MultiValue
-
doReduce
public InternalMax doReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
- Specified by:
doReducein classInternalAggregation
-
doXContentBody
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
doXContentBodyin classInternalAggregation- Throws:
IOException
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classInternalNumericMetricsAggregation
-
hashCode
public int hashCode()
- Overrides:
hashCodein classInternalNumericMetricsAggregation
-
-