| java.lang.Object com.quadcap.sql.TupleImpl com.quadcap.sql.CursorImpl com.quadcap.sql.FilterCursor com.quadcap.sql.AggregateCursor
AggregateCursor | public class AggregateCursor extends FilterCursor (Code) | | Used in conjunction with a GroupByCursor to handle
aggregate functions (e.g., SUM, AVG, etc.) with
a GROUP BY clause.
author: Stan Bailes |
Method Summary | |
public void | beforeFirst() | public void | close() | public void | deleteRow() | public Row | getRow() | public boolean | isWritable(int col) | public boolean | next() This routine returns the next element of an aggregate cursor,
i.e., one which uses SUM, COUNT, AVG, MAX, or MIN.
If GROUP BY is not specified, 'next()' simply fetches all of
the underlying rows, updating the aggregate expressions after
each row. | public void | resetAggregates() | public long | size() We don't know the size. | public void | updateAggregates(Cursor c) | public void | updateRow(Row row) |
currentRowNum | int currentRowNum(Code) | | |
isItemCursor | boolean isItemCursor(Code) | | |
next | public boolean next() throws SQLException(Code) | | This routine returns the next element of an aggregate cursor,
i.e., one which uses SUM, COUNT, AVG, MAX, or MIN.
If GROUP BY is not specified, 'next()' simply fetches all of
the underlying rows, updating the aggregate expressions after
each row. If there is a GROUP BY clause, we have to keep track
of when a new group starts using our associated group-by cursor.
|
size | public long size()(Code) | | We don't know the size.
|
|
|