public class Count extends AggregateFunction
Constructor and Description |
---|
Count(Column column)
Construct an COUNT function class with the column to count.
|
Count(Column column,
boolean distinct)
Construct an COUNT function class with the column to count
and possibly a distinct modifier.
|
Count(String sqlExpression)
Construct an COUNT function class with an SQL expression to count.
|
Modifier and Type | Method and Description |
---|---|
void |
setFunction(String function)
This method cannot be called, an UnsupportedOperationException
will always be thrown.
|
getArgument, getArguments, getColumn, getColumnName, getFullTableName, getFunction, getSchemaName, getSqlExpression, getTableName, isDistinct, setArguments, setColumn
public Count(Column column)
column
- the Column to count.public Count(String sqlExpression)
sqlExpression
- the SQL expression to count.public Count(Column column, boolean distinct)
column
- the Column to count.distinct
- whether to count only over distinct values.public void setFunction(String function)
setFunction
in class AggregateFunction
function
- disregarded.UnsupportedOperationException
- always.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.