Module org.elasticsearch.server
Class PercentilesConfig.TDigest
java.lang.Object
org.elasticsearch.search.aggregations.metrics.PercentilesConfig
org.elasticsearch.search.aggregations.metrics.PercentilesConfig.TDigest
- All Implemented Interfaces:
Writeable,ToXContent
- Enclosing class:
PercentilesConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.metrics.PercentilesConfig
PercentilesConfig.Hdr, PercentilesConfig.TDigestNested 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 -
Constructor Summary
ConstructorsConstructorDescriptionTDigest()TDigest(double compression) TDigest(double compression, TDigestExecutionHint executionHint) -
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) createPercentilesAggregator(String name, ValuesSourceConfig config, AggregationContext context, Aggregator parent, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) booleandoublegetExecutionHint(AggregationContext context) inthashCode()voidparseExecutionHint(String executionHint) voidsetCompression(double compression) toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.aggregations.metrics.PercentilesConfig
fromStream, getMethod, indexOfKeyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContent
isFragment
-
Constructor Details
-
TDigest
public TDigest() -
TDigest
public TDigest(double compression) -
TDigest
-
-
Method Details
-
setCompression
public void setCompression(double compression) -
getCompression
public double getCompression() -
parseExecutionHint
-
getExecutionHint
-
createPercentilesAggregator
public Aggregator createPercentilesAggregator(String name, ValuesSourceConfig config, AggregationContext context, Aggregator parent, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) throws IOException- Specified by:
createPercentilesAggregatorin classPercentilesConfig- Throws:
IOException
-
createEmptyPercentilesAggregator
public InternalNumericMetricsAggregation.MultiValue createEmptyPercentilesAggregator(String name, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) - Specified by:
createEmptyPercentilesAggregatorin classPercentilesConfig
-
createEmptyPercentileRanksAggregator
public InternalNumericMetricsAggregation.MultiValue createEmptyPercentileRanksAggregator(String name, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) - Specified by:
createEmptyPercentileRanksAggregatorin classPercentilesConfig
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classPercentilesConfig- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
equals
- Overrides:
equalsin classPercentilesConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classPercentilesConfig
-