Class Count

  • All Implemented Interfaces:
    Column, SQLFunction

    public class Count
    extends AggregateFunction
    SQL99 Standard count function.
    Version:
    $Id: Count.java 1848281 2018-12-06 10:48:36Z tv $
    • Constructor Detail

      • Count

        public Count​(Column column)
        Construct an COUNT function class with the column to count.
        Parameters:
        column - the Column to count.
      • Count

        public Count​(String sqlExpression)
        Construct an COUNT function class with an SQL expression to count.
        Parameters:
        sqlExpression - the SQL expression to count.
      • Count

        public Count​(Column column,
                     boolean distinct)
        Construct an COUNT function class with the column to count and possibly a distinct modifier.
        Parameters:
        column - the Column to count.
        distinct - whether to count only over distinct values.