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.TDigest
Nested classes/interfaces inherited from interface org.elasticsearch.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 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) boolean
double
getExecutionHint
(AggregationContext context) int
hashCode()
void
parseExecutionHint
(String executionHint) void
setCompression
(double compression) toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.aggregations.metrics.PercentilesConfig
fromStream, getMethod, indexOfKey
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
createPercentilesAggregator
in classPercentilesConfig
- Throws:
IOException
-
createEmptyPercentilesAggregator
public InternalNumericMetricsAggregation.MultiValue createEmptyPercentilesAggregator(String name, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) - Specified by:
createEmptyPercentilesAggregator
in classPercentilesConfig
-
createEmptyPercentileRanksAggregator
public InternalNumericMetricsAggregation.MultiValue createEmptyPercentileRanksAggregator(String name, double[] values, boolean keyed, DocValueFormat formatter, Map<String, Object> metadata) - Specified by:
createEmptyPercentileRanksAggregator
in classPercentilesConfig
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classPercentilesConfig
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
equals
- Overrides:
equals
in classPercentilesConfig
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPercentilesConfig
-