CursorResultSet, NoPutResultSet, ResultSet, RowLocationRetRowSource, RowSourceclass RowCountResultSet extends NoPutResultSetImpl implements CursorResultSet
BasicNoPutResultSetImpl.FieldComparator| Modifier and Type | Field | Description |
|---|---|---|
private long |
fetchFirst |
|
private GeneratedMethod |
fetchFirstMethod |
|
private boolean |
hasJDBClimitClause |
|
private long |
offset |
|
private GeneratedMethod |
offsetMethod |
|
private long |
rowsFetched |
Holds the number of rows returned so far in this round of using the
result set.
|
private boolean |
runTimeStatsOn |
|
(package private) NoPutResultSet |
source |
|
private boolean |
virginal |
True if we haven't yet fetched any rows from this result set.
|
activation, beginTime, closeTime, compactRow, constructorTime, currentRow, endExecutionTime, finished, isOpen, isTopResultSet, nextTime, numOpens, openTime, optimizerEstimatedCost, optimizerEstimatedRowCount, resultDescription, rowsFiltered, rowsSeen, startExecutionTime, subqueryTrackingArrayABSOLUTE, FIRST, LAST, NEXT, PREVIOUS, RELATIVE, TEMPORARY_RESULT_SET_NUMBERcheckNullCols, clonedExecRow, cncLen, resultSetNumber, targetResultSetCURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST| Constructor | Description |
|---|---|
RowCountResultSet(NoPutResultSet s,
Activation a,
int resultSetNumber,
GeneratedMethod offsetMethod,
GeneratedMethod fetchFirstMethod,
boolean hasJDBClimitClause,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost) |
RowCountResultSet constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
clearCurrentRow() |
Clear the current row
|
void |
close() |
Close needs to invalidate any dependent statements, if this is a cursor.
|
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().
|
ExecRow |
getCurrentRow() |
Gets information from source
|
ExecRow |
getNextRowCore() |
Return the requested values computed from the next row (if any)
|
RowLocation |
getRowLocation() |
Gets information from its source.
|
long |
getTimeSpent(int type) |
Return the total amount of time spent in this ResultSet
|
ProjectRestrictResultSet |
getUnderlyingProjectRestrictRS() |
Return underlying result set (the source og this result set) if it is a
ProjectRestrictResultSet, else null.
|
boolean |
isForUpdate() |
Override of NoPutResultSetImpl method.
|
void |
openCore() |
Open a scan on the table. scan parameters are evaluated
at each open, so there is probably some way of altering
their values...
|
void |
reopenCore() |
Reopen a scan on the table. scan parameters are evaluated
at each open, so there is probably some way of altering
their values...
|
addWarning, attachStatementContext, checkCancellationFlag, checkRowPosition, childrenToXML, cleanUp, dumpTimeStats, 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, toXMLclearOrderableCache, closeRowSource, getCursorName, getNextRowFromRowSource, getResultDescription, getValidColumns, markRowAsDeleted, needsRowLocation, needsRowLocationForDeferredCheckConstraints, needsToClone, offendingRowLocation, positionScanAtRowLocation, printQualifiers, resultSetNumber, rowLocation, setCurrentRow, setHasDeferrableChecks, setNeedsRowLocation, setTargetResultSet, skipRow, skipScan, unpackHashValue, updateRowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddWarning, checkRowPosition, cleanUp, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getRelativeRow, getResultDescription, getRowNumber, getSubqueryTrackingArray, getWarnings, isClosed, modifiedRowCount, open, returnsRows, setAfterLastRow, setBeforeFirstRow, toXMLfinal NoPutResultSet source
private final boolean runTimeStatsOn
private long offset
private long fetchFirst
private final GeneratedMethod offsetMethod
private final GeneratedMethod fetchFirstMethod
private final boolean hasJDBClimitClause
private boolean virginal
private long rowsFetched
RowCountResultSet(NoPutResultSet s, Activation a, int resultSetNumber, GeneratedMethod offsetMethod, GeneratedMethod fetchFirstMethod, boolean hasJDBClimitClause, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException
s - The source result set being filtereda - The activation for this result set,
which provides the context for the row
allocation operationresultSetNumber - The resultSetNumber for the ResultSetoffsetMethod - Generated methodfetchFirstMethod - Generated methodhasJDBClimitClause - True if offset/fetchFirst clauses were added by JDBC LIMIT escape syntaxoptimizerEstimatedRowCount - Estimated total # of rows by optimizeroptimizerEstimatedCost - Estimated total cost by optimizerStandardException - Standard error policypublic void openCore()
throws StandardException
openCore in interface NoPutResultSetStandardException - thrown if cursor finished.public void reopenCore()
throws StandardException
reopenCore in interface NoPutResultSetreopenCore in class BasicNoPutResultSetImplStandardException - thrown if cursor finished.NoPutResultSet.openCore()public ExecRow getNextRowCore() throws StandardException
getNextRowCore in interface NoPutResultSetgetNextRowCore in class BasicNoPutResultSetImplStandardException - thrown on failure.StandardException - ResultSetNotOpen thrown if not yet open.NoPutResultSet.getNextRowCore()public long getTimeSpent(int type)
getTimeSpent in interface ResultSettype - CURRENT_RESULTSET_ONLY - time spent only in this ResultSet
ENTIRE_RESULTSET_TREE - time spent in this ResultSet and below.public void close()
throws StandardException
NoPutResultSetImplclose in interface ResultSetclose in class NoPutResultSetImplStandardException - on errorResultSet.close()public void finish()
throws StandardException
ResultSetfinish in interface ResultSetfinish in class BasicNoPutResultSetImplStandardException - on errorResultSet.finish()public final void clearCurrentRow()
NoPutResultSetImplclearCurrentRow in interface ResultSetclearCurrentRow in class NoPutResultSetImplResultSet.clearCurrentRow()public RowLocation getRowLocation() throws StandardException
getRowLocation in interface CursorResultSetStandardException - thrown on failure to
get location from storage engineCursorResultSet.getRowLocation()public ExecRow getCurrentRow() throws StandardException
getCurrentRow in interface CursorResultSetStandardException - thrown on failure.CursorResultSet.getCurrentRow()public boolean isForUpdate()
isForUpdate in interface NoPutResultSetisForUpdate in class NoPutResultSetImplpublic ProjectRestrictResultSet getUnderlyingProjectRestrictRS()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.