Class DistinctGroupedAggregateResultSet

  • All Implemented Interfaces:
    CursorResultSet, NoPutResultSet, ResultSet, RowLocationRetRowSource, RowSource

    class DistinctGroupedAggregateResultSet
    extends GroupedAggregateResultSet
    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.
    • Constructor Detail

      • DistinctGroupedAggregateResultSet

        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 - input result set
        isInSortedOrder - true if the source results are in sorted order
        aggregateItem - indicates the number of the SavedObject off of the PreparedStatement that holds the AggregatorInfoList used by this routine.
        orderingItem - indicates the number of the SavedObject off of the PreparedStatement that holds the ColumOrdering array used by this routine
        a - activation
        ra - saved object that builds an empty output row
        maxRowSize - approx row size, passed to sorter
        resultSetNumber - The resultSetNumber for this result set
        Throws:
        StandardException - Thrown on error