Module org.elasticsearch.server
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,- Aggregation,- NumericMetricsAggregation,- NumericMetricsAggregation.MultiValue,- Percentiles,- PercentilesBucket,- ToXContent,- ToXContentFragment
public class InternalPercentilesBucket
extends InternalNumericMetricsAggregation.MultiValue
implements PercentilesBucket
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregationInternalNumericMetricsAggregation.MultiValue, InternalNumericMetricsAggregation.SingleValueNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.AggregationAggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregationNumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValueNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregationformatFields inherited from class org.elasticsearch.search.aggregations.InternalAggregationmetadata, nameFields inherited from interface org.elasticsearch.search.aggregations.AggregationTYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.search.aggregations.metrics.PercentilesTYPE_NAMEFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddoWriteTo(StreamOutput out) doXContentBody(XContentBuilder builder, ToXContent.Params params) booleanReturns the name of the writeable objectinthashCode()iterator()doublepercentile(double percent) Return the value associated with the provided percentile.percentileAsString(double percent) Return the value associated with the provided percentile as a String.reduce(List<InternalAggregation> aggregations, AggregationReduceContext reduceContext) Reduces the given aggregations to a single one and returns it.doubleReturn the result of 1 value by nameReturn an iterable over all value names this multi value aggregation provides.Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.MultiValuegetProperty, sortValue, valueAsStringMethods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregationmustReduceOnSingleInternalAgg, sortValueMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregationcopyWithRewritenBuckets, finalizeSampling, forEachBucket, getMetadata, getName, getProperty, getType, isMapped, readSize, reducePipelines, toString, toXContent, writeSize, writeToMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.AggregationgetMetadata, getName, getTypeMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.elasticsearch.xcontent.ToXContenttoXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
InternalPercentilesBucketRead from a stream.- Throws:
- IOException
 
 
- 
- 
Method Details- 
doWriteTo- Specified by:
- doWriteToin class- InternalAggregation
- Throws:
- IOException
 
- 
getWriteableNameDescription copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
- getWriteableNamein interface- NamedWriteable
 
- 
percentileDescription copied from interface:PercentilesReturn the value associated with the provided percentile.- Specified by:
- percentilein interface- Percentiles
- Throws:
- IllegalArgumentException
 
- 
percentileAsStringDescription copied from interface:PercentilesReturn the value associated with the provided percentile as a String.- Specified by:
- percentileAsStringin interface- Percentiles
 
- 
iterator- Specified by:
- iteratorin interface- Iterable<Percentile>
 
- 
valueDescription copied from interface:NumericMetricsAggregation.MultiValueReturn the result of 1 value by name- Specified by:
- valuein interface- NumericMetricsAggregation.MultiValue
- Specified by:
- valuein class- InternalNumericMetricsAggregation.MultiValue
- Parameters:
- name- of the value
- Returns:
- the value
 
- 
valueNamesDescription copied from interface:NumericMetricsAggregation.MultiValueReturn 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:
- valueNamesin interface- NumericMetricsAggregation.MultiValue
- Returns:
- iterable over all value names
 
- 
reduceDescription copied from class:InternalAggregationReduces the given aggregations to a single one and returns it. In most cases, the assumption will be the all given aggregations are of the same type (the same type as this aggregation). For best efficiency, when implementing, try reusing an existing instance (typically the first in the given list) to save on redundant object construction.- Specified by:
- reducein class- InternalAggregation
- See Also:
 
- 
doXContentBodypublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- doXContentBodyin class- InternalAggregation
- Throws:
- IOException
 
- 
equals- Overrides:
- equalsin class- InternalNumericMetricsAggregation
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- InternalNumericMetricsAggregation
 
 
-