Package io.deephaven.api.agg.spec
Class AggSpecCountDistinct
java.lang.Object
io.deephaven.api.agg.spec.AggSpecBase
io.deephaven.api.agg.spec.AggSpecCountDistinct
- All Implemented Interfaces:
AggSpec
Specifies an aggregation that outputs the count of distinct values for each group.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.api.agg.spec.AggSpec
AggSpec.Visitor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Whethernull
input values should be included when counting the distinct input values.final String
Get a simple description for this AggSpec.static AggSpecCountDistinct
of()
Create a new AggSpecCountDistinct withcountNulls
of false.static AggSpecCountDistinct
of
(boolean countNulls) Create a new AggSpecCountDistinct.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
-
Field Details
-
COUNT_NULLS_DEFAULT
public static final boolean COUNT_NULLS_DEFAULT- See Also:
-
-
Constructor Details
-
AggSpecCountDistinct
public AggSpecCountDistinct()
-
-
Method Details
-
of
Create a new AggSpecCountDistinct withcountNulls
of false.- Returns:
- the agg spec
-
of
Create a new AggSpecCountDistinct.- Parameters:
countNulls
- if nulls should be counted- Returns:
- the agg spec
-
description
Description copied from interface:AggSpec
Get a simple description for this AggSpec.- Returns:
- The description
-
countNulls
@Parameter public abstract boolean countNulls()Whethernull
input values should be included when counting the distinct input values.- Returns:
- Whether to count nulls
-
walk
Description copied from interface:AggSpec
Glue method to deliver this AggSpec to aAggSpec.Visitor
.- Parameters:
visitor
- The visitor- Returns:
- The visitor
-