NoPutResultSet
, ResultSet
, RowLocationRetRowSource
, RowSource
class LastIndexKeyResultSet extends ScanResultSet
BasicNoPutResultSetImpl.FieldComparator
Modifier and Type | Field | Description |
---|---|---|
boolean |
coarserLock |
|
protected long |
conglomId |
|
protected Qualifier[][] |
qualifiers |
|
boolean |
returnedRow |
|
protected boolean |
runTimeStatisticsOn |
|
protected int |
startSearchOperator |
|
java.lang.String |
stopPositionString |
|
protected int |
stopSearchOperator |
|
java.lang.String |
userSuppliedOptimizerOverrides |
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
accessedCols, candidate, fetchRowLocations, indexName, isolationLevel, lockMode, resultRowBuilder, tableName
Constructor | Description |
---|---|
LastIndexKeyResultSet(Activation activation,
int resultSetNumber,
int resultRowTemplate,
long conglomId,
java.lang.String tableName,
java.lang.String userSuppliedOptimizerOverrides,
java.lang.String indexName,
int colRefItem,
int lockMode,
boolean tableLocked,
int isolationLevel,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost) |
A last index key result set returns the last row from
the index in question.
|
Modifier and Type | Method | Description |
---|---|---|
(package private) boolean |
canGetInstantaneousLocks() |
Can we get instantaneous locks when getting share row
locks at READ COMMITTED.
|
void |
close() |
If the result set has been opened,
close the open scan.
|
ExecRow |
getCurrentRow() |
This result set has its row from the last fetch done.
|
ExecRow |
getNextRowCore() |
Return the next row (if any) from the scan (if open).
|
long |
getTimeSpent(int type) |
Return the total amount of time spent in this ResultSet
|
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...
|
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, getSubqueryTrackingArray, getTransactionController, getWarnings, isClosed, isXplainOnlyMode, markAsTopResultSet, modifiedRowCount, open, recordConstructorTime, reopenCore, requiresRelocking, returnsRows, setAfterLastRow, setBeforeFirstRow, setCompactRow, setCompatRow, toXML
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getScanIsolationLevel, initIsolationLevel, setRowLocationsState, toXML
protected long conglomId
protected int startSearchOperator
protected int stopSearchOperator
protected Qualifier[][] qualifiers
public java.lang.String userSuppliedOptimizerOverrides
protected boolean runTimeStatisticsOn
public java.lang.String stopPositionString
public boolean coarserLock
public boolean returnedRow
public LastIndexKeyResultSet(Activation activation, int resultSetNumber, int resultRowTemplate, long conglomId, java.lang.String tableName, java.lang.String userSuppliedOptimizerOverrides, java.lang.String indexName, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException
activation
- the activation for this result set,
which provides the context for the row allocation operation.resultSetNumber
- The resultSetNumber for the ResultSetresultRowTemplate
- The saved item for result row templateconglomId
- the conglomerate of the table to be scanned.tableName
- The full name of the tableuserSuppliedOptimizerOverrides
- Overrides specified by the user on the sqlindexName
- The name of the index, if one used to access table.colRefItem
- An saved item for a bitSet of columns that
are referenced in the underlying table. -1 if
no item.lockMode
- The lock granularity to use (see
TransactionController in access)tableLocked
- Whether or not the table is marked as using table locking
(in sys.systables)isolationLevel
- Isolation level (specified or not) to use on scansoptimizerEstimatedRowCount
- Estimated total # of rows by
optimizeroptimizerEstimatedCost
- Estimated total cost by optimizerStandardException
- thrown when unable to create the
result setboolean canGetInstantaneousLocks()
canGetInstantaneousLocks
in class ScanResultSet
public void openCore() throws StandardException
StandardException
- thrown on failure to openpublic ExecRow getNextRowCore() throws StandardException
getNextRowCore
in interface NoPutResultSet
getNextRowCore
in class BasicNoPutResultSetImpl
StandardException
- thrown on failure to get next rowNoPutResultSet.getNextRowCore()
public void close() throws StandardException
close
in interface ResultSet
close
in class ScanResultSet
StandardException
- thrown on failure to closepublic long getTimeSpent(int type)
type
- CURRENT_RESULTSET_ONLY - time spent only in this ResultSet
ENTIRE_RESULTSET_TREE - time spent in this ResultSet and below.public ExecRow getCurrentRow() throws StandardException
StandardException
- thrown on failure.CursorResultSet
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.