Package io.deephaven.api.agg.spec
Class AggSpecTDigest
java.lang.Object
io.deephaven.api.agg.spec.AggSpecBase
io.deephaven.api.agg.spec.AggSpecTDigest
- All Implemented Interfaces:
AggSpec
Specifies an aggregation that outputs a T-Digest (com.tdunning.math.stats.TDigest) with the specified
compression().
May be used to implement parallel percentile calculations by splitting inputs and accumulating results into a single downstream TDigest.
May only be used on static or add-only tables.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.api.agg.spec.AggSpec
AggSpec.Visitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract OptionalDoubleT-Digest compression factor.final StringGet a simple description for this AggSpec.static AggSpecTDigestof()Create a new AggSpecTDigest withcompressionchosen by the server.static AggSpecTDigestof(double compression) Create a new AggSpecTDigest.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
-
AggSpecTDigest
public AggSpecTDigest()
-
-
Method Details
-
of
Create a new AggSpecTDigest withcompressionchosen by the server.- Returns:
- the agg spec
-
of
Create a new AggSpecTDigest.- Parameters:
compression- the compression- Returns:
- the agg spec
-
description
Description copied from interface:AggSpecGet a simple description for this AggSpec.- Returns:
- The description
-
compression
T-Digest compression factor. Must be greater than or equal to 1. 1000 is extremely large.When not specified, the server will choose a compression value.
- Returns:
- The T-Digest compression factor if specified
-
walk
Description copied from interface:AggSpecGlue method to deliver this AggSpec to aAggSpec.Visitor.- Parameters:
visitor- The visitor- Returns:
- The visitor
-