Class Unique


@JsType(namespace="dh.agg") public final class Unique extends ColumnAggregation
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.
  • Field Details

    • type

      @TsLiteral public final @TsLiteral String type
      See Also:
    • includeNulls

      public @JsNullable Boolean includeNulls
      Whether null is treated as a value for the purpose of determining if the values in the aggregation group are unique. When true, a group containing both null and a single non-null value is considered non-unique. Defaults to false.
    • nonUniqueSentinel

      public @JsNullable Unique.NonUniqueSentinelUnion 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 to null.
  • Constructor Details

    • Unique

      public Unique()