Class AggSpecDistinct

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

@Immutable public abstract class AggSpecDistinct extends AggSpecBase
Specifies an aggregation that outputs the distinct values for each group as a Deephaven vector (io.deephaven.vector.Vector).
  • Field Details

    • INCLUDE_NULLS_DEFAULT

      public static final boolean INCLUDE_NULLS_DEFAULT
      See Also:
  • Constructor Details

    • AggSpecDistinct

      public AggSpecDistinct()
  • Method Details

    • of

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

      public static AggSpecDistinct of(boolean includeNulls)
      Create a new AggSpecDistinct.
      Parameters:
      includeNulls - if nulls should be included as distinct values
      Returns:
      the agg spec
    • description

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

      @Parameter public abstract boolean includeNulls()
      Whether null input values should be included in the distinct output values.
      Returns:
      Whether to include 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