public class Max extends AggregateFunction
Constructor and Description |
---|
Max(Column column)
Construct an MAX function class with the column to calculate the maximum
from.
|
Max(Column column,
boolean distinct)
Construct an MAX function class with the column to calculate
the maximum from and possibly a distinct modifier.
|
Max(String sqlExpression)
Construct an MAX function class with an SQL expression to calculate
the maximum from.
|
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 Max(Column column)
column
- the Column to calculate the maximum from.public Max(String sqlExpression)
sqlExpression
- the SQL expression to calculate the maximum from.public Max(Column column, boolean distinct)
column
- the Column to calculate the maximum from.distinct
- whether to calculate the maximum from only
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.