Class InternalTDigestPercentiles
- 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.metrics.InternalTDigestPercentiles
-
- All Implemented Interfaces:
Iterable<Percentile>,NamedWriteable,Writeable,ToXContent,ToXContentFragment,Aggregation,NumericMetricsAggregation,NumericMetricsAggregation.MultiValue,Percentiles
public class InternalTDigestPercentiles extends InternalNumericMetricsAggregation.MultiValue implements Percentiles
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInternalTDigestPercentiles.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 Modifier and Type Field Description protected double[]keysstatic StringNAMEprotected TDigestStatestate-
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 InternalTDigestPercentiles(StreamInput in)Read from a stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.elasticsearch.search.aggregations.metrics.AbstractInternalTDigestPercentilescreateReduced(String name, double[] keys, TDigestState merged, boolean keyed, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)org.elasticsearch.search.aggregations.metrics.AbstractInternalTDigestPercentilesdoReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)protected voiddoWriteTo(StreamOutput out)XContentBuilderdoXContentBody(XContentBuilder builder, ToXContent.Params params)booleanequals(Object obj)longgetEstimatedMemoryFootprint()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(double key)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
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
keys
protected final double[] keys
-
state
protected final TDigestState state
-
-
Constructor Detail
-
InternalTDigestPercentiles
public InternalTDigestPercentiles(StreamInput in) throws IOException
Read from a stream.- Throws:
IOException
-
-
Method Detail
-
getWriteableName
public String getWriteableName()
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
iterator
public Iterator<Percentile> iterator()
- Specified by:
iteratorin interfaceIterable<Percentile>
-
percentile
public double percentile(double percent)
Description copied from interface:PercentilesReturn the value associated with the provided percentile.- Specified by:
percentilein interfacePercentiles
-
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
-
value
public double value(double key)
-
createReduced
protected org.elasticsearch.search.aggregations.metrics.AbstractInternalTDigestPercentiles createReduced(String name, double[] keys, TDigestState merged, boolean keyed, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)
-
doWriteTo
protected void doWriteTo(StreamOutput out) throws IOException
- Specified by:
doWriteToin classInternalAggregation- Throws:
IOException
-
value
public double value(String name)
- Specified by:
valuein classInternalNumericMetricsAggregation.MultiValue
-
getEstimatedMemoryFootprint
public long getEstimatedMemoryFootprint()
-
doReduce
public org.elasticsearch.search.aggregations.metrics.AbstractInternalTDigestPercentiles 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
-
-