Class PercentilesConfig
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
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
Modifier and TypeClassDescriptionstatic class
static class
Nested 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.Params
Nested 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 TypeMethodDescriptionabstract Aggregator
name, ValuesSource valuesSource, AggregationContext context, Aggregator parent, double[] values, boolean keyed, DocValueFormat formatter, <,> metadata)
boolean
obj)
static PercentilesConfig
fromLegacy(PercentilesMethod method, double compression, int numberOfSignificantDigits)
Deprecated.static PercentilesConfig
fromStream(StreamInput in)
int
hashCode()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.
, , , , , , , ,
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
isFragment, toXContent
-
Method Details
-
fromStream
- Throws:
-
fromLegacy
public static PercentilesConfig fromLegacy(PercentilesMethod method, double compression, int numberOfSignificantDigits)Deprecated.Deprecated: construct aPercentilesConfig
directly instead -
getMethod
-
createPercentilesAggregator
public abstract name, ValuesSource valuesSource, AggregationContext context, Aggregator parent, double[] values, boolean keyed, DocValueFormat formatter, <,> metadata) throws- Throws:
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
equals
public boolean equals( obj)- Overrides:
in class
-
hashCode
public int hashCode()- Overrides:
in class
-