Class InternalHDRPercentileRanks
- 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.percentiles.hdr.InternalHDRPercentileRanks
-
- All Implemented Interfaces:
java.lang.Iterable<Percentile>,NamedWriteable,Writeable,ToXContent,ToXContentFragment,Aggregation,NumericMetricsAggregation,NumericMetricsAggregation.MultiValue,PercentileRanks
public class InternalHDRPercentileRanks extends InternalNumericMetricsAggregation.MultiValue implements PercentileRanks
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInternalHDRPercentileRanks.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 booleankeyedprotected double[]keysstatic java.lang.StringNAMEprotected org.HdrHistogram.DoubleHistogramstate-
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.PercentileRanks
TYPE_NAME
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description InternalHDRPercentileRanks(java.lang.String name, double[] cdfValues, org.HdrHistogram.DoubleHistogram state, boolean keyed, DocValueFormat formatter, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)InternalHDRPercentileRanks(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.percentiles.hdr.AbstractInternalHDRPercentilescreateReduced(java.lang.String name, double[] keys, org.HdrHistogram.DoubleHistogram merged, boolean keyed, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)protected booleandoEquals(java.lang.Object obj)Opportunity for subclasses to add criteria to theInternalAggregation.equals(Object)method for this class.protected intdoHashCode()Opportunity for subclasses to theInternalAggregation.hashCode()for this class.org.elasticsearch.search.aggregations.metrics.percentiles.hdr.AbstractInternalHDRPercentilesdoReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)protected voiddoWriteTo(StreamOutput out)XContentBuilderdoXContentBody(XContentBuilder builder, ToXContent.Params params)longgetEstimatedMemoryFootprint()java.lang.StringgetWriteableName()Returns the name of the writeable objectjava.util.Iterator<Percentile>iterator()doublepercent(double value)Return the percentile for the given value.java.lang.StringpercentAsString(double value)Return the percentile for the given value as a String.doublevalue(double key)doublevalue(java.lang.String name)-
Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation.MultiValue
getProperty, valueAsString
-
Methods inherited from class org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation
equals, hashCode
-
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 org.elasticsearch.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
keys
protected final double[] keys
-
state
protected final org.HdrHistogram.DoubleHistogram state
-
keyed
protected final boolean keyed
-
-
Constructor Detail
-
InternalHDRPercentileRanks
public InternalHDRPercentileRanks(java.lang.String name, double[] cdfValues, org.HdrHistogram.DoubleHistogram state, boolean keyed, DocValueFormat formatter, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
-
InternalHDRPercentileRanks
public InternalHDRPercentileRanks(StreamInput in) throws java.io.IOException
Read from a stream.- Throws:
java.io.IOException
-
-
Method Detail
-
getWriteableName
public java.lang.String getWriteableName()
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
iterator
public java.util.Iterator<Percentile> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<Percentile>
-
percent
public double percent(double value)
Description copied from interface:PercentileRanksReturn the percentile for the given value.- Specified by:
percentin interfacePercentileRanks
-
percentAsString
public java.lang.String percentAsString(double value)
Description copied from interface:PercentileRanksReturn the percentile for the given value as a String.- Specified by:
percentAsStringin interfacePercentileRanks
-
value
public double value(double key)
-
createReduced
protected org.elasticsearch.search.aggregations.metrics.percentiles.hdr.AbstractInternalHDRPercentiles createReduced(java.lang.String name, double[] keys, org.HdrHistogram.DoubleHistogram merged, boolean keyed, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
-
doWriteTo
protected void doWriteTo(StreamOutput out) throws java.io.IOException
- Specified by:
doWriteToin classInternalAggregation- Throws:
java.io.IOException
-
value
public double value(java.lang.String name)
- Specified by:
valuein classInternalNumericMetricsAggregation.MultiValue
-
getEstimatedMemoryFootprint
public long getEstimatedMemoryFootprint()
-
doReduce
public org.elasticsearch.search.aggregations.metrics.percentiles.hdr.AbstractInternalHDRPercentiles doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
- Specified by:
doReducein classInternalAggregation
-
doXContentBody
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
doXContentBodyin classInternalAggregation- Throws:
java.io.IOException
-
doEquals
protected boolean doEquals(java.lang.Object obj)
Description copied from class:InternalAggregationOpportunity for subclasses to add criteria to theInternalAggregation.equals(Object)method for this class. This method can safely castobjto the subclass since theInternalAggregation.equals(Object)method checks thatobjis the same class asthis- Specified by:
doEqualsin classInternalAggregation
-
doHashCode
protected int doHashCode()
Description copied from class:InternalAggregationOpportunity for subclasses to theInternalAggregation.hashCode()for this class.- Specified by:
doHashCodein classInternalAggregation
-
-