package ModSQL;
import java.sql.*;

/* $Id: Aggregate.java,v 1.4 2003/05/29 04:28:21 cvs Exp $
 *
 * Copyright (c) 2003 Chris Studholme <chris.studholme@utoronto.ca>
 *
 * May be copied or modified under the terms of the GNU General Public
 * License.  See COPYING for more information.
 */

/**
 * Refinement of Function interface for aggregate functions.
 *
 * @author chris.studholme@utoronto.ca
 */
public interface Aggregate extends Function {

  /**
   * <p>Specify that this aggregate should eliminate duplicate values before
   * aggregating rows.
   *
   * <p>This method must be called before optimize().
   *
   * @throws SQLException if DISTINCT is not allowed
   */
  public void setDistinct() throws SQLException;


};
