Package io.deephaven.web.client.api.agg
Class Unique
java.lang.Object
io.deephaven.web.client.api.agg.Aggregation
io.deephaven.web.client.api.agg.ColumnAggregation
io.deephaven.web.client.api.agg.Unique
Computes the single distinct value within each aggregation group. A group with more than one distinct value gives
nonUniqueSentinel. A group whose values are all null gives null, whatever the sentinel.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOutputsvaluefor a boolean column.static final classOutputsvaluefor a byte column.static final classOutputsvaluefor a char column.static final classOutputsvaluefor a double column.static final classOutputsvaluefor a float column.static final classOutputsvaluefor an int column.static final classOutputsvaluefor a long column.static interfaceAnonUniqueSentinelvalue, whosetypenames the column type it suits.static final classOutputsnullfor a group without a single unique value.static final classOutputsvaluefor a short column.static final classOutputsvaluefor a group without a single unique value, for a String column. -
Field Summary
FieldsModifier and TypeFieldDescription@JsNullable BooleanWhethernullis treated as a value for the purpose of determining if the values in the aggregation group are unique.@JsNullable Unique.NonUniqueSentinelUnionThe value to output for a group with more than one distinct value.final @TsLiteral StringFields inherited from class io.deephaven.web.client.api.agg.ColumnAggregation
columns -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.deephaven.web.client.api.agg.Aggregation
AggAbsSum, AggApproxPct, AggAvg, AggCount, AggCountDistinct, AggCountWhere, AggDistinct, AggFirst, AggFirstRowKey, AggFormula, AggFreeze, AggGroup, AggLast, AggLastRowKey, AggMax, AggMed, AggMin, AggPartition, AggPct, AggSortedFirst, AggSortedLast, AggStd, AggSum, AggTDigest, AggUnique, AggVar, AggWAvg, AggWSum
-
Field Details
-
type
- See Also:
-
includeNulls
Whethernullis treated as a value for the purpose of determining if the values in the aggregation group are unique. Whentrue, a group containing both null and a single non-null value is considered non-unique. Defaults tofalse. -
nonUniqueSentinel
The value to output for a group with more than one distinct value. A group whose values are all null still gives null. Its type must suit the aggregated columns, for example an"int"sentinel for an int column. Defaults tonull.
-
-
Constructor Details
-
Unique
public Unique()
-