class RowCountResultSet extends NoPutResultSetImpl implements CursorResultSet
BasicNoPutResultSetImpl.FieldComparator
Modifier and Type | Field and 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.
|
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
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
ABSOLUTE, FIRST, LAST, NEXT, PREVIOUS, RELATIVE, TEMPORARY_RESULT_SET_NUMBER
Constructor and Description |
---|
RowCountResultSet(NoPutResultSet s,
Activation a,
int resultSetNumber,
GeneratedMethod offsetMethod,
GeneratedMethod fetchFirstMethod,
boolean hasJDBClimitClause,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost)
RowCountResultSet constructor
|
Modifier and Type | Method and 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...
|
clearOrderableCache, closeRowSource, getCursorName, getNextRowFromRowSource, getResultDescription, getValidColumns, markRowAsDeleted, needsRowLocation, needsRowLocationForDeferredCheckConstraints, needsToClone, offendingRowLocation, positionScanAtRowLocation, printQualifiers, resultSetNumber, rowLocation, setCurrentRow, setHasDeferrableChecks, setNeedsRowLocation, setTargetResultSet, skipRow, skipScan, unpackHashValue, updateRow
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, toXML
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addWarning, checkRowPosition, cleanUp, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getRelativeRow, getResultDescription, getRowNumber, getSubqueryTrackingArray, getWarnings, isClosed, modifiedRowCount, open, returnsRows, setAfterLastRow, setBeforeFirstRow, toXML
final 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 NoPutResultSet
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
getNextRowCore
in interface NoPutResultSet
getNextRowCore
in class BasicNoPutResultSetImpl
StandardException
- thrown on failure.StandardException
- ResultSetNotOpen thrown if not yet open.NoPutResultSet.getNextRowCore()
public long getTimeSpent(int type)
getTimeSpent
in interface ResultSet
type
- CURRENT_RESULTSET_ONLY - time spent only in this ResultSet
ENTIRE_RESULTSET_TREE - time spent in this ResultSet and below.public void close() throws StandardException
NoPutResultSetImpl
close
in interface ResultSet
close
in class NoPutResultSetImpl
StandardException
- on errorResultSet.close()
public void finish() throws StandardException
ResultSet
finish
in interface ResultSet
finish
in class BasicNoPutResultSetImpl
StandardException
- on errorResultSet.finish()
public final void clearCurrentRow()
NoPutResultSetImpl
clearCurrentRow
in interface ResultSet
clearCurrentRow
in class NoPutResultSetImpl
ResultSet.clearCurrentRow()
public RowLocation getRowLocation() throws StandardException
getRowLocation
in interface CursorResultSet
StandardException
- thrown on failure to
get location from storage engineCursorResultSet.getRowLocation()
public ExecRow getCurrentRow() throws StandardException
getCurrentRow
in interface CursorResultSet
StandardException
- thrown on failure.CursorResultSet.getCurrentRow()
public boolean isForUpdate()
isForUpdate
in interface NoPutResultSet
isForUpdate
in class NoPutResultSetImpl
public ProjectRestrictResultSet getUnderlyingProjectRestrictRS()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.