Package io.deephaven.web.client.api.agg
Interface AggregationUnion
@JsType(name="?",
namespace="<global>",
isNative=true)
@TsUnion(anonymous=false,
name="AggregationUnion",
namespace="dh.agg")
public interface AggregationUnion
Union type representing all aggregation variants accepted by
TableOperations.aggBy,
TableOperations.rangeJoin, etc. This includes both column-based aggregations (subtypes of
ColumnAggregation) that operate on input/output column pairs, and non-column aggregations (Count,
CountWhere, Partition, FirstRowKey, LastRowKey) that produce a single named output
column. dh.agg.AggAllByUnion is the subset accepted by
aggAllBy.
Each variant carries a type field that acts as a discriminant for TypeScript narrowing.
-
Method Summary
Modifier and TypeMethodDescriptiondefault AbsSumasAbsSum()default ApproxPercentiledefault AvgasAvg()default CountasCount()default CountDistinctdefault CountWheredefault Distinctdefault FirstasFirst()default FirstRowKeydefault Formuladefault FreezeasFreeze()default GroupasGroup()default LastasLast()default LastRowKeydefault MaxasMax()default MedianasMedian()default MinasMin()default Partitiondefault Percentiledefault SortedFirstdefault SortedLastdefault StdasStd()default SumasSum()default TDigestdefault UniqueasUnique()default VarasVar()default WAvgasWAvg()default WSumasWSum()getType()Helper to read the type discriminant from any aggregation variant.default Aggregation.BuilderBuilds a protoAggregationmessage from this union variant.
-
Method Details
-
asAbsSum
-
asApproxPercentile
-
asAvg
-
asCountDistinct
-
asDistinct
-
asFirst
-
asFormula
-
asFreeze
-
asGroup
-
asLast
-
asMax
-
asMedian
-
asMin
-
asPercentile
-
asSortedFirst
-
asSortedLast
-
asStd
-
asSum
-
asTDigest
-
asUnique
-
asVar
-
asWAvg
-
asWSum
-
asCount
-
asCountWhere
-
asPartition
-
asFirstRowKey
-
asLastRowKey
-
getType
Helper to read the type discriminant from any aggregation variant. Not visible from JS/TS as part of this union, but allows access to thetypefield that each aggregation type has. -
makeAggregation
Builds a protoAggregationmessage from this union variant. Non-spec types (Count, CountWhere, Partition, FirstRowKey, LastRowKey) use their own proto oneof arms; spec-based types delegate toAggAllByUnion.makeAggSpec()and wrap the result inAggregationColumns.
-