: Interface Aggregate

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD