Package io.deephaven.api.agg.spec
Class AggSpecApproximatePercentile
java.lang.Object
io.deephaven.api.agg.spec.AggSpecBase
io.deephaven.api.agg.spec.AggSpecApproximatePercentile
- All Implemented Interfaces:
AggSpec
Specifies an aggregation that outputs a percentile approximated using a T-Digest with the specified
compression()
.
Efficiently supports multiple output percentiles based on a single input column.
May only be used on static or add-only tables.
Only supported for numeric types.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.api.agg.spec.AggSpec
AggSpec.Visitor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract OptionalDouble
T-Digest compression factor.final String
Get a simple description for this AggSpec.static AggSpecApproximatePercentile
of
(double percentile) Create a new AggSpecApproximatePercentile withcompression
chosen by the server.static AggSpecApproximatePercentile
of
(double percentile, double compression) Create a new AggSpecApproximatePercentile.abstract double
Percentile.final <V extends AggSpec.Visitor>
Vwalk
(V visitor) Glue method to deliver this AggSpec to aAggSpec.Visitor
.Methods inherited from class io.deephaven.api.agg.spec.AggSpecBase
aggregation, aggregation, aggregation
-
Constructor Details
-
AggSpecApproximatePercentile
public AggSpecApproximatePercentile()
-
-
Method Details
-
of
Create a new AggSpecApproximatePercentile withcompression
chosen by the server.- Parameters:
percentile
- the percentile- Returns:
- the agg spec
-
of
Create a new AggSpecApproximatePercentile.- Parameters:
percentile
- the percentilecompression
- the compression- Returns:
- the agg spec
-
description
Description copied from interface:AggSpec
Get a simple description for this AggSpec.- Returns:
- The description
-
percentile
public abstract double percentile()Percentile. Must be in range [0.0, 1.0].- Returns:
- The percentile
-
compression
T-Digest compression factor. Must be greater than or equal to 1. 1000 is extremely large.When not specified, the engine will choose a compression value.
- Returns:
- The T-Digest compression factor if specified
-
walk
Description copied from interface:AggSpec
Glue method to deliver this AggSpec to aAggSpec.Visitor
.- Parameters:
visitor
- The visitor- Returns:
- The visitor
-