public class Avg extends AggregateFunction
| Constructor and Description | 
|---|
| Avg(Column column)Construct an AVG function class with the column to average over. | 
| Avg(Column column,
   boolean distinct)Construct an AVG function class with the column to average over
 and possibly a distinct modifier. | 
| Avg(String sqlExpression)Construct an AVG function class with an SQL expression to average over. | 
| 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, setColumnpublic Avg(Column column)
column - the Column to average over.public Avg(String sqlExpression)
sqlExpression - the SQL expression to average over.public Avg(Column column, boolean distinct)
column - the Column to average over.distinct - whether to average only over distinct values.public void setFunction(String function)
setFunction in class AggregateFunctionfunction - disregarded.UnsupportedOperationException - always.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.