This ResultSet evaluates grouped aggregates when there is 1 or more distinct aggregate.
It will scan the entire source result set and calculate
the grouped aggregates when scanning the source during the
first call to next().
RESOLVE - This subclass is essentially empty. Someday we will need to write
additional code for distinct grouped aggregates, especially when we support
multiple distinct aggregates.
author: jerry (broken out from SortResultSet)
Constructor Summary
DistinctGroupedAggregateResultSet(NoPutResultSet s, boolean isInSortedOrder, int aggregateItem, int orderingItem, Activation a, GeneratedMethod ra, int maxRowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost) Constructor
Parameters: s - input result set Parameters: isInSortedOrder - true if the source results are in sorted order Parameters: aggregateItem - indicates the number of theSavedObject off of the PreparedStatement that holds theAggregatorInfoList used by this routine.
Constructor Detail
DistinctGroupedAggregateResultSet
DistinctGroupedAggregateResultSet(NoPutResultSet s, boolean isInSortedOrder, int aggregateItem, int orderingItem, Activation a, GeneratedMethod ra, int maxRowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException(Code)
Constructor
Parameters: s - input result set Parameters: isInSortedOrder - true if the source results are in sorted order Parameters: aggregateItem - indicates the number of theSavedObject off of the PreparedStatement that holds theAggregatorInfoList used by this routine. Parameters: orderingItem - indicates the number of theSavedObject off of the PreparedStatement that holds theColumOrdering array used by this routine Parameters: a - activation Parameters: ra - generated method to build an emptyoutput row Parameters: maxRowSize - approx row size, passed to sorter Parameters: resultSetNumber - The resultSetNumber for this result set exception: StandardException - Thrown on error
Fields inherited from org.apache.derby.impl.sql.execute.GroupedAggregateResultSet