Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv Class DistinctGroupedAggregateResultSet

extends GroupedAggregateResultSet
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.loader.GeneratedMethod, org.apache.derby.iapi.sql.Activation, org.apache.derby.iapi.sql.execute.NoPutResultSet

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.

Field Summary

Inherited from org.apache.derby.impl.sql.execute.GroupedAggregateResultSet:
hasDistinctAggregateisInSortedOrderrowsInputrowsReturnedsortProperties

Constructor Summary

AccessConstructor and Description
pack-priv
DistinctGroupedAggregateResultSet(NoPutResultSet
input result set
s
,
boolean
true if the source results are in sorted order
isInSortedOrder
,
int
indicates the number of the SavedObject off of the PreparedStatement that holds the AggregatorInfoList used by this routine.
aggregateItem
,
int
indicates the number of the SavedObject off of the PreparedStatement that holds the ColumOrdering array used by this routine
orderingItem
,
Activation
activation
a
,
int
saved object that builds an empty output row
ra
,
int
approx row size, passed to sorter
maxRowSize
,
int
The resultSetNumber for this result set
resultSetNumber
,
double optimizerEstimatedRowCount, double optimizerEstimatedCost, boolean isRollup)

Constructor

Method Summary

Inherited from org.apache.derby.impl.sql.execute.GroupedAggregateResultSet:
closecloseSourcegetCurrentRowgetNextRowCoregetRowLocationgetTimeSpentopenCore

Constructor Detail

DistinctGroupedAggregateResultSetback to summary
pack-priv DistinctGroupedAggregateResultSet(NoPutResultSet s, boolean isInSortedOrder, int aggregateItem, int orderingItem, Activation a, int ra, int maxRowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, boolean isRollup) throws StandardException

Constructor

Parameters
s:NoPutResultSet

input result set

isInSortedOrder:boolean

true if the source results are in sorted order

aggregateItem:int

indicates the number of the SavedObject off of the PreparedStatement that holds the AggregatorInfoList used by this routine.

orderingItem:int

indicates the number of the SavedObject off of the PreparedStatement that holds the ColumOrdering array used by this routine

a:Activation

activation

ra:int

saved object that builds an empty output row

maxRowSize:int

approx row size, passed to sorter

resultSetNumber:int

The resultSetNumber for this result set

Exceptions
StandardException:
Thrown on error