NoPutResultSet
, ResultSet
, RowLocationRetRowSource
, RowSource
GroupedAggregateResultSet
, ScalarAggregateResultSet
abstract class GenericAggregateResultSet extends NoPutResultSetImpl
BasicNoPutResultSetImpl.FieldComparator
Modifier and Type | Field | Description |
---|---|---|
protected AggregatorInfoList |
aggInfoList |
|
protected GenericAggregator[] |
aggregates |
|
protected NoPutResultSet |
originalSource |
|
private ExecIndexRow |
rowTemplate |
|
NoPutResultSet |
source |
activation, beginTime, closeTime, compactRow, constructorTime, currentRow, endExecutionTime, finished, isOpen, isTopResultSet, nextTime, numOpens, openTime, optimizerEstimatedCost, optimizerEstimatedRowCount, resultDescription, rowsFiltered, rowsSeen, startExecutionTime, subqueryTrackingArray
ABSOLUTE, FIRST, LAST, NEXT, PREVIOUS, RELATIVE, TEMPORARY_RESULT_SET_NUMBER
checkNullCols, clonedExecRow, cncLen, resultSetNumber, targetResultSet
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
Constructor | Description |
---|---|
GenericAggregateResultSet(NoPutResultSet s,
int aggregateItem,
Activation a,
int ra,
int resultSetNumber,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost) |
Constructor
|
Modifier and Type | Method | 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.
|
org.w3c.dom.Element |
toXML(org.w3c.dom.Element parentNode,
java.lang.String tag) |
Produce an xml image of this ResultSet and its descendant ResultSets.
|
addWarning, attachStatementContext, checkCancellationFlag, checkRowPosition, childrenToXML, 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, setCompatRow, toXML
openCore
clearCurrentRow, clearOrderableCache, close, closeRowSource, getCursorName, getNextRowFromRowSource, getResultDescription, getValidColumns, isForUpdate, markRowAsDeleted, needsRowLocation, needsRowLocationForDeferredCheckConstraints, needsToClone, offendingRowLocation, positionScanAtRowLocation, printQualifiers, resultSetNumber, rowLocation, setCurrentRow, setHasDeferrableChecks, setNeedsRowLocation, setTargetResultSet, skipRow, skipScan, unpackHashValue, updateRow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTimeSpent
protected 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
ResultSet
finish
in interface ResultSet
finish
in class BasicNoPutResultSetImpl
StandardException
- on errorpublic org.w3c.dom.Element toXML(org.w3c.dom.Element parentNode, java.lang.String tag) throws java.lang.Exception
ResultSet
Produce an xml image of this ResultSet and its descendant ResultSets. Appends an element to the parentNode and returns the appended element.
toXML
in interface ResultSet
toXML
in class BasicNoPutResultSetImpl
parentNode
- Node to put content into.tag
- Element tag for contentjava.lang.Exception
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.