Aggregate

Implements the integrated aggregate functions, such as COUNT, MAX, SUM.

Methods
static Aggregate.AggregateType getAggregateType(String name)
Get the aggregate type for this name, or -1 if no aggregate has been found.
static Aggregate.AggregateType getAggregateType(String name)
Get the aggregate type for this name, or -1 if no aggregate has been found.
Parameters:
name - the aggregate function name
Returns:
null if no aggregate function has been found, or the aggregate type
Aggregate(Aggregate.AggregateType type, Expression on, Select select, boolean distinct)
Create a new aggregate object.
Aggregate(Aggregate.AggregateType type, Expression on, Select select, boolean distinct)
Create a new aggregate object.
Parameters:
type - the aggregate type
on - the aggregated expression
select - the select statement
distinct - if distinct is used
int getCost()
int getCost()
int getDisplaySize()
int getDisplaySize()
long getPrecision()
long getPrecision()
String getSQL()
String getSQL()
int getScale()
int getScale()
int getType()
int getType()
Value getValue(Session session)
Value getValue(Session session)
boolean isEverything(ExpressionVisitor visitor)
boolean isEverything(ExpressionVisitor visitor)
void mapColumns(ColumnResolver resolver, int level)
void mapColumns(ColumnResolver resolver, int level)
Expression optimize(Session session)
Expression optimize(Session session)
void setArrayAggOrder(ArrayList orderBy)
Set the order for ARRAY_AGG() aggregate.
void setArrayAggOrder(ArrayList orderBy)
Set the order for ARRAY_AGG() aggregate.
Parameters:
orderBy - the order by list
void setEvaluatable(TableFilter tableFilter, boolean b)
void setEvaluatable(TableFilter tableFilter, boolean b)
void setFilterCondition(Expression filterCondition)
Sets the FILTER condition.
void setFilterCondition(Expression filterCondition)
Sets the FILTER condition.
Parameters:
filterCondition - condition
void setGroupConcatOrder(ArrayList orderBy)
Set the order for GROUP_CONCAT() aggregate.
void setGroupConcatOrder(ArrayList orderBy)
Set the order for GROUP_CONCAT() aggregate.
Parameters:
orderBy - the order by list
void setGroupConcatSeparator(Expression separator)
Set the separator for the GROUP_CONCAT() aggregate.
void setGroupConcatSeparator(Expression separator)
Set the separator for the GROUP_CONCAT() aggregate.
Parameters:
separator - the separator expression
void updateAggregate(Session session)
void updateAggregate(Session session)