class WindowResultSet extends NoPutResultSetImpl
BasicNoPutResultSetImpl.FieldComparator
Modifier and Type | Field and Description |
---|---|
private ExecRow |
allocatedRow |
private FormatableBitSet |
referencedColumns |
private GeneratedMethod |
restriction |
long |
restrictionTime
Cumulative time needed to evaluate any restriction on this result set.
|
private long |
rownumber |
NoPutResultSet |
source
Source result set,
|
checkNullCols, clonedExecRow, cncLen, resultSetNumber, targetResultSet
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
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
Constructor and Description |
---|
WindowResultSet(Activation activation,
NoPutResultSet source,
int rowAllocator,
int resultSetNumber,
int erdNumber,
GeneratedMethod restriction,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
If the result set has been opened, close the open scan, else throw.
|
private ExecRow |
getAllocatedRow()
Cache the ExecRow for this result set.
|
ExecRow |
getNextRowCore()
Return the requested values computed from the next row (if any) for which
the restriction evaluates to true.
|
long |
getTimeSpent(int type)
Return the total amount of time spent in this ResultSet
|
void |
openCore()
Open this ResultSet.
|
void |
populateFromSourceRow(ExecRow srcrow,
ExecRow destrow)
Copy columns from srcrow into destrow, or insert ROW_NUMBER.
|
void |
reopenCore()
Reopen this ResultSet.
|
clearCurrentRow, clearOrderableCache, closeRowSource, getCursorName, getNextRowFromRowSource, getResultDescription, getValidColumns, isForUpdate, markRowAsDeleted, needsRowLocation, needsRowLocationForDeferredCheckConstraints, needsToClone, offendingRowLocation, positionScanAtRowLocation, printQualifiers, resultSetNumber, rowLocation, setCurrentRow, setHasDeferrableChecks, setNeedsRowLocation, setTargetResultSet, skipRow, skipScan, unpackHashValue, updateRow
addWarning, attachStatementContext, checkCancellationFlag, checkRowPosition, childrenToXML, cleanUp, dumpTimeStats, finish, finishAndRTS, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCompactRow, getCurrentTimeMillis, getElapsedMillis, getEndExecutionTimestamp, getEstimatedRowCount, getExecuteTime, getExecutionFactory, getFirstRow, getLanguageConnectionContext, getLastRow, getNextRow, getPointOfAttachment, getPreviousRow, getRelativeRow, getRowNumber, getScanIsolationLevel, getSubqueryTrackingArray, getTransactionController, getWarnings, isClosed, isXplainOnlyMode, markAsTopResultSet, modifiedRowCount, open, recordConstructorTime, requiresRelocking, returnsRows, setAfterLastRow, setBeforeFirstRow, setCompactRow, setCompatRow, toXML, toXML
private GeneratedMethod restriction
public NoPutResultSet source
public long restrictionTime
private FormatableBitSet referencedColumns
private ExecRow allocatedRow
private long rownumber
WindowResultSet(Activation activation, NoPutResultSet source, int rowAllocator, int resultSetNumber, int erdNumber, GeneratedMethod restriction, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException
activation
- The activationsource
- Source result setrowAllocator
- resultSetNumber
- The resultSetNumbererdNumber
- Int for ResultDescription
(so it can be turned back into an object)restriction
- RestrictionoptimizerEstimatedRowCount
- The optimizer's estimated number
of rows.optimizerEstimatedCost
- The optimizer's estimated costStandardException
public void openCore() throws StandardException
StandardException
- thrown if cursor finished.public void reopenCore() throws StandardException
reopenCore
in interface NoPutResultSet
reopenCore
in class BasicNoPutResultSetImpl
StandardException
- thrown if cursor finished.NoPutResultSet.openCore()
public ExecRow getNextRowCore() throws StandardException
Restriction and projection parameters are evaluated for each row.
getNextRowCore
in interface NoPutResultSet
getNextRowCore
in class BasicNoPutResultSetImpl
StandardException
- thrown on failure.StandardException
- ResultSetNotOpen thrown if not yet open.NoPutResultSet.getNextRowCore()
public void close() throws StandardException
close
in interface ResultSet
close
in class NoPutResultSetImpl
StandardException
- thrown on errorpublic void populateFromSourceRow(ExecRow srcrow, ExecRow destrow) throws StandardException
StandardException
- thrown on failure to openpublic long getTimeSpent(int type)
type
- CURRENT_RESULTSET_ONLY - time spent only in this ResultSet
ENTIRE_RESULTSET_TREE - time spent in this ResultSet and below.private ExecRow getAllocatedRow() throws StandardException
StandardException
- thrown on failure.Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.