Class AggSpecCountDistinct

java.lang.Object
io.deephaven.api.agg.spec.AggSpecBase
io.deephaven.api.agg.spec.AggSpecCountDistinct
All Implemented Interfaces:
AggSpec

@Immutable public abstract class AggSpecCountDistinct extends AggSpecBase
Specifies an aggregation that outputs the count of distinct values for each group.
  • Field Details

  • Constructor Details

    • AggSpecCountDistinct

      public AggSpecCountDistinct()
  • Method Details

    • of

      public static AggSpecCountDistinct of()
      Create a new AggSpecCountDistinct with countNulls of false.
      Returns:
      the agg spec
    • of

      public static AggSpecCountDistinct of(boolean countNulls)
      Create a new AggSpecCountDistinct.
      Parameters:
      countNulls - if nulls should be counted
      Returns:
      the agg spec
    • description

      public final String description()
      Description copied from interface: AggSpec
      Get a simple description for this AggSpec.
      Returns:
      The description
    • countNulls

      @Parameter public abstract boolean countNulls()
      Whether null input values should be included when counting the distinct input values.
      Returns:
      Whether to count nulls
    • walk

      public final <V extends AggSpec.Visitor> V walk(V visitor)
      Description copied from interface: AggSpec
      Glue method to deliver this AggSpec to a AggSpec.Visitor.
      Parameters:
      visitor - The visitor
      Returns:
      The visitor