--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.impl.sql.execute.DistinctGroupedAggregateResultSet\r
+\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to you under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+ */\r
+\r
+package org.apache.derby.impl.sql.execute;\r
+\r
+import org.apache.derby.iapi.error.StandardException;\r
+import org.apache.derby.iapi.services.loader.GeneratedMethod;\r
+import org.apache.derby.iapi.sql.Activation;\r
+import org.apache.derby.iapi.sql.execute.NoPutResultSet;\r
+\r
+/**\r
+ * This ResultSet evaluates grouped aggregates when there is 1 or more distinct aggregate.\r
+ * It will scan the entire source result set and calculate\r
+ * the grouped aggregates when scanning the source during the \r
+ * first call to next().\r
+ *\r
+ * RESOLVE - This subclass is essentially empty. Someday we will need to write \r
+ * additional code for distinct grouped aggregates, especially when we support\r
+ * multiple distinct aggregates.\r
+ *\r
+ */\r
+class DistinctGroupedAggregateResultSet extends GroupedAggregateResultSet\r
+{\r
+\r
+ /**\r
+ * Constructor\r
+ *\r
+ * @param s input result set\r
+ * @param isInSortedOrder true if the source results are in sorted order\r
+ * @param aggregateItem indicates the number of the\r
+ * SavedObject off of the PreparedStatement that holds the\r
+ * AggregatorInfoList used by this routine. \r
+ * @param orderingItem indicates the number of the\r
+ * SavedObject off of the PreparedStatement that holds the\r
+ * ColumOrdering array used by this routine\r
+ * @param a activation\r
+ * @param ra generated method to build an empty\r
+ * output row \r
+ * @param maxRowSize approx row size, passed to sorter\r
+ * @param resultSetNumber The resultSetNumber for this result set\r
+ *\r
+ * @exception StandardException Thrown on error\r
+ */\r
+ DistinctGroupedAggregateResultSet(NoPutResultSet s,\r
+ boolean isInSortedOrder,\r
+ int aggregateItem,\r
+ int orderingItem,\r
+ Activation a,\r
+ GeneratedMethod ra,\r
+ int maxRowSize,\r
+ int resultSetNumber,\r
+ double optimizerEstimatedRowCount,\r
+ double optimizerEstimatedCost) throws StandardException \r
+ {\r
+ super(s, isInSortedOrder, aggregateItem, orderingItem,\r
+ a, ra, maxRowSize, resultSetNumber, optimizerEstimatedRowCount, optimizerEstimatedCost);\r
+ }\r
+\r
+\r
+ ///////////////////////////////////////////////////////////////////////////////\r
+ //\r
+ // ResultSet interface (leftover from NoPutResultSet)\r
+ //\r
+ ///////////////////////////////////////////////////////////////////////////////\r
+\r
+ ///////////////////////////////////////////////////////////////////////////////\r
+ //\r
+ // CursorResultSet interface\r
+ //\r
+ ///////////////////////////////////////////////////////////////////////////////\r
+\r
+ ///////////////////////////////////////////////////////////////////////////////\r
+ //\r
+ // SCAN ABSTRACTION UTILITIES\r
+ //\r
+ ///////////////////////////////////////////////////////////////////////////////\r
+\r
+ ///////////////////////////////////////////////////////////////////////////////\r
+ //\r
+ // AGGREGATION UTILITIES\r
+ //\r
+ ///////////////////////////////////////////////////////////////////////////////\r
+}\r