ModSQL
Interface Aggregate

All Superinterfaces:
Function
All Known Implementing Classes:
AbstractAggregate

public interface Aggregate
extends Function

Refinement of Function interface for aggregate functions.

Author:
chris.studholme@utoronto.ca

Fields inherited from interface ModSQL.Function
MATCH_BEGINS, MATCH_EQU, MATCH_GT, MATCH_GTE, MATCH_LT, MATCH_LTE, MATCH_NE
 
Method Summary
 void setDistinct()
          Specify that this aggregate should eliminate duplicate values before aggregating rows.
 
Methods inherited from interface ModSQL.Function
addParameter, evaluate, evaluate, evaluateOrder, getMaxResultSize, getParameter, getParameterCount, getSQLType, isAggregate, isConstant, optimize, registerWith, reset
 

Method Detail

setDistinct

public void setDistinct()
                 throws SQLException

Specify that this aggregate should eliminate duplicate values before aggregating rows.

This method must be called before optimize().

Throws:
SQLException - if DISTINCT is not allowed