Class PercentilesConfig
java.lang.Object
org.elasticsearch.search.aggregations.metrics.PercentilesConfig
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.xcontent.ToXContent
- Direct Known Subclasses:
PercentilesConfig.Hdr,PercentilesConfig.TDigest
public abstract class PercentilesConfig extends java.lang.Object implements org.elasticsearch.common.xcontent.ToXContent, Writeable
A small config object that carries algo-specific settings. This allows the factory to have
a single unified constructor for both algos, but internally switch execution
depending on which algo is selected
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPercentilesConfig.Hdrstatic classPercentilesConfig.TDigestNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and Type Method Description abstract AggregatorcreatePercentilesAggregator(java.lang.String name, ValuesSource valuesSource, AggregationContext context, Aggregator parent, double[] values, boolean keyed, DocValueFormat formatter, java.util.Map<java.lang.String,java.lang.Object> metadata)booleanequals(java.lang.Object obj)static PercentilesConfigfromLegacy(PercentilesMethod method, double compression, int numberOfSignificantDigits)Deprecated.static PercentilesConfigfromStream(StreamInput in)PercentilesMethodgetMethod()inthashCode()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContent
isFragment, toXContent
-
Method Details
-
fromStream
- Throws:
java.io.IOException
-
fromLegacy
@Deprecated public static PercentilesConfig fromLegacy(PercentilesMethod method, double compression, int numberOfSignificantDigits)Deprecated.Deprecated: construct aPercentilesConfigdirectly instead -
getMethod
-
createPercentilesAggregator
public abstract Aggregator createPercentilesAggregator(java.lang.String name, ValuesSource valuesSource, AggregationContext context, Aggregator parent, double[] values, boolean keyed, DocValueFormat formatter, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOException- Throws:
java.io.IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput. -
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-