abstract class GenericAggregateResultSet extends NoPutResultSetImpl
| Modifier and Type | Field and Description |
|---|---|
protected AggregatorInfoList |
aggInfoList |
protected GenericAggregator[] |
aggregates |
protected NoPutResultSet |
originalSource |
private ExecIndexRow |
rowTemplate |
NoPutResultSet |
source |
checkNullCols, clonedExecRow, cncLen, resultSetNumber, targetResultSetactivation, beginTime, closeTime, compactRow, constructorTime, currentRow, endExecutionTime, finished, isOpen, isTopResultSet, nextTime, numOpens, openTime, optimizerEstimatedCost, optimizerEstimatedRowCount, resultDescription, rowsFiltered, rowsSeen, startExecutionTime, subqueryTrackingArrayABSOLUTE, FIRST, LAST, NEXT, PREVIOUS, RELATIVECURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST| Constructor and Description |
|---|
GenericAggregateResultSet(NoPutResultSet s,
int aggregateItem,
Activation a,
int ra,
int resultSetNumber,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Tells the system that there will be no more access
to any database information via this result set;
in particular, no more calls to open().
|
protected ExecIndexRow |
finishAggregation(ExecIndexRow row)
Finish the aggregation for the current row.
|
(package private) ExecIndexRow |
getRowTemplate()
Get a template row of the right shape for sorting or returning results.
|
protected GenericAggregator[] |
getSortAggregators(AggregatorInfoList list,
boolean eliminateDistincts,
LanguageConnectionContext lcc,
NoPutResultSet inputResultSet)
For each AggregatorInfo in the list, generate a
GenericAggregator and stick it in an array of
GenericAggregators.
|
clearCurrentRow, clearOrderableCache, close, closeRowSource, getCursorName, getNextRowFromRowSource, getResultDescription, getValidColumns, isForUpdate, markRowAsDeleted, needsRowLocation, needsToClone, positionScanAtRowLocation, printQualifiers, resultSetNumber, rowLocation, setCurrentRow, setNeedsRowLocation, setTargetResultSet, skipRow, skipScan, updateRowaddWarning, attachStatementContext, checkCancellationFlag, checkRowPosition, cleanUp, dumpTimeStats, finishAndRTS, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCompactRow, getCurrentTimeMillis, getElapsedMillis, getEndExecutionTimestamp, getEstimatedRowCount, getExecuteTime, getExecutionFactory, getFirstRow, getLanguageConnectionContext, getLastRow, getNextRow, getNextRowCore, getPointOfAttachment, getPreviousRow, getRelativeRow, getRowNumber, getScanIsolationLevel, getSubqueryTrackingArray, getTransactionController, getWarnings, isClosed, isXplainOnlyMode, markAsTopResultSet, modifiedRowCount, open, recordConstructorTime, reopenCore, requiresRelocking, returnsRows, setAfterLastRow, setBeforeFirstRow, setCompactRow, setCompatRowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenCoregetTimeSpentprotected GenericAggregator[] aggregates
protected AggregatorInfoList aggInfoList
public NoPutResultSet source
protected NoPutResultSet originalSource
private final ExecIndexRow rowTemplate
GenericAggregateResultSet(NoPutResultSet s, int aggregateItem, Activation a, int ra, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException
a - activationra - reference to a saved row allocator instanceresultSetNumber - result set numberoptimizerEstimatedRowCount - optimizer estimated row countoptimizerEstimatedCost - optimizer estimated costStandardException - Thrown on errorExecIndexRow getRowTemplate()
protected final GenericAggregator[] getSortAggregators(AggregatorInfoList list, boolean eliminateDistincts, LanguageConnectionContext lcc, NoPutResultSet inputResultSet) throws StandardException
list - the list of aggregators to set upeliminateDistincts - should distincts be ignored.
Used to toss out distinct aggregates for a prelim
sort.lcc - the lccinputResultSet - the incoming result setStandardException - on errorprotected final ExecIndexRow finishAggregation(ExecIndexRow row) throws StandardException
row - the row to finish aggregationStandardException - Thrown on errorpublic void finish()
throws StandardException
ResultSetfinish in interface ResultSetfinish in class BasicNoPutResultSetImplStandardException - on errorApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.