Module org.elasticsearch.server
Class PercentilesConfig
java.lang.Object
org.elasticsearch.search.aggregations.metrics.PercentilesConfig
- All Implemented Interfaces:
Writeable,ToXContent
- Direct Known Subclasses:
PercentilesConfig.Hdr,PercentilesConfig.TDigest
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 ClassesModifier and TypeClassDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptioncreateEmptyPercentileRanksAggregator(String name, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) createEmptyPercentilesAggregator(String name, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) abstract AggregatorcreatePercentilesAggregator(String name, ValuesSourceConfig config, AggregationContext context, Aggregator parent, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) booleanstatic PercentilesConfiginthashCode()static intindexOfKey(double[] keys, double key) 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.xcontent.ToXContent
isFragment, toXContent
-
Method Details
-
indexOfKey
public static int indexOfKey(double[] keys, double key) -
fromStream
- Throws:
IOException
-
getMethod
-
createPercentilesAggregator
public abstract Aggregator createPercentilesAggregator(String name, ValuesSourceConfig config, AggregationContext context, Aggregator parent, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) throws IOException- Throws:
IOException
-
createEmptyPercentilesAggregator
public abstract InternalNumericMetricsAggregation.MultiValue createEmptyPercentilesAggregator(String name, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) -
createEmptyPercentileRanksAggregator
public abstract InternalNumericMetricsAggregation.MultiValue createEmptyPercentileRanksAggregator(String name, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-