CursorResultSet
, NoPutResultSet
, ResultSet
, RowLocationRetRowSource
, RowSource
class IndexRowToBaseRowResultSet extends NoPutResultSetImpl implements CursorResultSet
BasicNoPutResultSetImpl.FieldComparator
Modifier and Type | Field | Description |
---|---|---|
private int |
_baseColumnCount |
|
private FormatableBitSet |
_heapColsWithoutRowLocation |
|
private boolean |
_includeRowLocation |
|
private FormatableBitSet |
accessedAllCols |
|
FormatableBitSet |
accessedHeapCols |
|
private ConglomerateController |
baseCC |
|
(package private) RowLocation |
baseRowLocation |
|
private boolean |
closeBaseCCHere |
|
(package private) boolean |
copiedFromSource |
|
private DynamicCompiledOpenConglomInfo |
dcoci |
|
private boolean |
forUpdate |
|
private int[] |
indexCols |
|
java.lang.String |
indexName |
|
private GeneratedMethod |
restriction |
|
long |
restrictionTime |
|
private DataValueDescriptor[] |
rowArray |
|
private StaticCompiledOpenConglomInfo |
scoci |
|
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 |
---|---|
IndexRowToBaseRowResultSet(long conglomId,
int scociItem,
Activation a,
NoPutResultSet source,
int resultRowAllocator,
int resultSetNumber,
java.lang.String indexName,
int heapColRefItem,
int allColRefItem,
int heapOnlyColRefItem,
int indexColMapItem,
GeneratedMethod restriction,
boolean forUpdate,
double optimizerEstimatedRowCount,
double optimizerEstimatedCost,
int baseColumnCount) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
If the result set has been opened,
close the open scan.
|
ExecRow |
getCurrentRow() |
Gets last row returned.
|
ExecRow |
getNextRowCore() |
Return the requested values computed
from the next row (if any) for which
the restriction evaluates to true.
|
RowLocation |
getRowLocation() |
Return the RowLocation of the base row.
|
long |
getTimeSpent(int type) |
Return the total amount of time spent in this ResultSet
|
boolean |
isForUpdate() |
Is this ResultSet or it's source result set for update.
|
void |
openCore() |
open this ResultSet.
|
void |
positionScanAtRowLocation(RowLocation rl) |
Positions the cursor in the specified rowLocation.
|
void |
reopenCore() |
reopen this ResultSet.
|
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
clearCurrentRow, clearOrderableCache, closeRowSource, getCursorName, getNextRowFromRowSource, getResultDescription, getValidColumns, markRowAsDeleted, needsRowLocation, needsRowLocationForDeferredCheckConstraints, needsToClone, offendingRowLocation, printQualifiers, resultSetNumber, rowLocation, setCurrentRow, setHasDeferrableChecks, setNeedsRowLocation, setTargetResultSet, skipRow, skipScan, unpackHashValue, updateRow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addWarning, checkRowPosition, cleanUp, clearCurrentRow, finish, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getRelativeRow, getResultDescription, getRowNumber, getSubqueryTrackingArray, getWarnings, isClosed, modifiedRowCount, open, returnsRows, setAfterLastRow, setBeforeFirstRow, toXML
public NoPutResultSet source
private GeneratedMethod restriction
public FormatableBitSet accessedHeapCols
private FormatableBitSet accessedAllCols
public java.lang.String indexName
private int[] indexCols
private DynamicCompiledOpenConglomInfo dcoci
private StaticCompiledOpenConglomInfo scoci
private ConglomerateController baseCC
private boolean closeBaseCCHere
private boolean forUpdate
private DataValueDescriptor[] rowArray
RowLocation baseRowLocation
boolean copiedFromSource
public long restrictionTime
private int _baseColumnCount
private boolean _includeRowLocation
private FormatableBitSet _heapColsWithoutRowLocation
IndexRowToBaseRowResultSet(long conglomId, int scociItem, Activation a, NoPutResultSet source, int resultRowAllocator, int resultSetNumber, java.lang.String indexName, int heapColRefItem, int allColRefItem, int heapOnlyColRefItem, int indexColMapItem, GeneratedMethod restriction, boolean forUpdate, double optimizerEstimatedRowCount, double optimizerEstimatedCost, int baseColumnCount) throws StandardException
StandardException
public 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
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 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 RowLocation getRowLocation() throws StandardException
getRowLocation
in interface CursorResultSet
StandardException
- thrown on failure.CursorResultSet
public void positionScanAtRowLocation(RowLocation rl) throws StandardException
NoPutResultSet
positionScanAtRowLocation
in interface NoPutResultSet
positionScanAtRowLocation
in class NoPutResultSetImpl
rl
- row location of the current cursor rowStandardException
- thrown on failure to
get location from storage engineAlso remembers row location so that subsequent invocations of
getCurrentRow will not read the index row to look up the row
location base row, but reuse the saved row location.
public ExecRow getCurrentRow() throws StandardException
getCurrentRow
in interface CursorResultSet
StandardException
- thrown on failure.CursorResultSet
public boolean isForUpdate()
isForUpdate
in interface NoPutResultSet
isForUpdate
in class NoPutResultSetImpl
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.