| Modifier and Type | Field and Description |
|---|---|
| public boolean | |
| protected long | |
| protected boolean | |
| protected DynamicCompiledOpenConglomInfo | |
| private long | |
| protected boolean | |
| public boolean | |
| protected int[] | |
| public boolean | |
| protected boolean | |
| protected boolean | |
| public boolean | |
| protected BackingStoreHashtable | past2FutureTbl
This field is used by beetle 3865, updateable cursor using index. |
| public Qualifier[][] | |
| protected boolean | |
| private RowLocation | |
| public int | |
| protected long | |
| protected boolean | |
| pack-priv final boolean | |
| protected ScanController | |
| protected boolean | |
| private Properties | |
| protected boolean | |
| protected StaticCompiledOpenConglomInfo | |
| protected GeneratedMethod | |
| protected ExecIndexRow | |
| public String | |
| protected int | |
| protected GeneratedMethod | |
| protected ExecIndexRow | |
| public String | |
| protected int | |
| public String |
| Access | Constructor and Description |
|---|---|
| pack-priv | TableScanResultSet(long conglomId, StaticCompiledOpenConglomInfo scoci, Activation activation, int resultRowTemplate, int resultSetNumber, GeneratedMethod startKeyGetter, int startSearchOperator, GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, Qualifier[][] qualifiers, String tableName, String userSuppliedOptimizerOverrides, String indexName, boolean isConstraint, boolean forUpdate, int colRefItem, int indexColItem, int lockMode, boolean tableLocked, int isolationLevel, int rowsPerRead, boolean oneRowScan, double optimizerEstimatedRowCount, double optimizerEstimatedCost)
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | canGetInstantaneousLocks()
Implements abstract org. Can we get instantaneous locks when getting share row locks at READ COMMITTED. |
| public Object | |
| public void | close()
Overrides org. Implements org. If the result set has been opened, close the open scan. |
| public ExecRow | Returns: the last row returned;Implements org. This result set has its row from the last fetch done. |
| public ExecRow | getNextRowCore()
Implements abstract org. Implements org. Return the next row (if any) from the scan (if open). |
| public RowLocation | Returns: the row location of the current cursor row.Implements org. This result set has its row location from the last fetch done. |
| public Properties | |
| public long | Returns: long The total amount of time spent (in milliseconds).CURRENT_RESULTSET_ONLY - time spent only in this ResultSet
ENTIRE_RESULTSET_TREE - time spent in this ResultSet and below. type)Implements org. Return the total amount of time spent in this ResultSet |
| pack-priv void | initStartAndStopKey()
Initialize the |
| public boolean | Returns: Whether or not the result set is for update.Overrides org. Implements org. Is this ResultSet or it's source result set for update |
| pack-priv boolean | |
| public void | openCore()
Implements org. open a scan on the table. |
| protected void | |
| public void | positionScanAtRowLocation(RowLocation
row location of the current cursor row rl)Overrides org. Implements org. Positions the cursor in the specified rowLocation. |
| private String | printPosition(int searchOperator, GeneratedMethod positionGetter, ExecIndexRow positioner)
Return a start or stop positioner as a String. |
| public String | |
| public String | |
| public void | reopenCore()
Overrides org. Implements org. Reopen a table scan. |
| protected void | |
| public boolean | requiresRelocking()
Overrides org. Implements org. Do we need to relock the row when going to the heap. |
| protected final void | setRowCountIfPossible(long
The number of rows to update the scanController to rowsThisScan)Update the number of rows in the scan controller. |
| coarserLock | back to summary |
|---|---|
| public boolean coarserLock | |
| conglomId | back to summary |
|---|---|
| protected long conglomId | |
| currentRowIsValid | back to summary |
|---|---|
| protected boolean currentRowIsValid | |
| dcoci | back to summary |
|---|---|
| protected DynamicCompiledOpenConglomInfo dcoci | |
| estimatedRowCount | back to summary |
|---|---|
| private long estimatedRowCount | |
| firstScan | back to summary |
|---|---|
| protected boolean firstScan | |
| forUpdate | back to summary |
|---|---|
| public boolean forUpdate | |
| indexCols | back to summary |
|---|---|
| protected int[] indexCols | |
| isConstraint | back to summary |
|---|---|
| public boolean isConstraint | |
| isKeyed | back to summary |
|---|---|
| protected boolean isKeyed | |
| nextDone | back to summary |
|---|---|
| protected boolean nextDone | |
| oneRowScan | back to summary |
|---|---|
| public boolean oneRowScan | |
| past2FutureTbl | back to summary |
|---|---|
| protected BackingStoreHashtable past2FutureTbl This field is used by beetle 3865, updateable cursor using index. It is a hash table containing updated rows that are thrown into future direction of the index scan, and as a result we'll hit it again but should skip it. The hash table will spill to disk if it grows too big to be kept in memory. | |
| qualifiers | back to summary |
|---|---|
| public Qualifier[][] qualifiers | |
| qualify | back to summary |
|---|---|
| protected boolean qualify | |
| rlTemplate | back to summary |
|---|---|
| private RowLocation rlTemplate | |
| rowsPerRead | back to summary |
|---|---|
| public int rowsPerRead | |
| rowsThisScan | back to summary |
|---|---|
| protected long rowsThisScan | |
| runTimeStatisticsOn | back to summary |
|---|---|
| protected boolean runTimeStatisticsOn | |
| sameStartStopPosition | back to summary |
|---|---|
| pack-priv final boolean sameStartStopPosition | |
| scanController | back to summary |
|---|---|
| protected ScanController scanController | |
| scanControllerOpened | back to summary |
|---|---|
| protected boolean scanControllerOpened | |
| scanProperties | back to summary |
|---|---|
| private Properties scanProperties | |
| scanRepositioned | back to summary |
|---|---|
| protected boolean scanRepositioned | |
| scoci | back to summary |
|---|---|
| protected StaticCompiledOpenConglomInfo scoci | |
| startKeyGetter | back to summary |
|---|---|
| protected GeneratedMethod startKeyGetter | |
| startPosition | back to summary |
|---|---|
| protected ExecIndexRow startPosition | |
| startPositionString | back to summary |
|---|---|
| public String startPositionString | |
| startSearchOperator | back to summary |
|---|---|
| protected int startSearchOperator | |
| stopKeyGetter | back to summary |
|---|---|
| protected GeneratedMethod stopKeyGetter | |
| stopPosition | back to summary |
|---|---|
| protected ExecIndexRow stopPosition | |
| stopPositionString | back to summary |
|---|---|
| public String stopPositionString | |
| stopSearchOperator | back to summary |
|---|---|
| protected int stopSearchOperator | |
| userSuppliedOptimizerOverrides | back to summary |
|---|---|
| public String userSuppliedOptimizerOverrides | |
| TableScanResultSet | back to summary |
|---|---|
| pack-priv TableScanResultSet(long conglomId, StaticCompiledOpenConglomInfo scoci, Activation activation, int resultRowTemplate, int resultSetNumber, GeneratedMethod startKeyGetter, int startSearchOperator, GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, Qualifier[][] qualifiers, String tableName, String userSuppliedOptimizerOverrides, String indexName, boolean isConstraint, boolean forUpdate, int colRefItem, int indexColItem, int lockMode, boolean tableLocked, int isolationLevel, int rowsPerRead, boolean oneRowScan, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException | |
| canGetInstantaneousLocks | back to summary |
|---|---|
| protected boolean canGetInstantaneousLocks() Implements abstract org. Can we get instantaneous locks when getting share row locks at READ COMMITTED. | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Shallow clone this result set. Used in trigger reference. beetle 4373.
| |
| close | back to summary |
|---|---|
| public void close() throws StandardException Overrides org. Implements org. If the result set has been opened, close the open scan.
| |
| getCurrentRow | back to summary |
|---|---|
| public ExecRow getCurrentRow() throws StandardException Implements org. This result set has its row from the last fetch done. If the cursor is closed, the row has been deleted, or no longer qualifies (for forward only result sets) a null is returned.
| |
| getNextRowCore | back to summary |
|---|---|
| public ExecRow getNextRowCore() throws StandardException Implements abstract org. Implements org. Return the next row (if any) from the scan (if open).
| |
| getRowLocation | back to summary |
|---|---|
| public RowLocation getRowLocation() throws StandardException Implements org. This result set has its row location from the last fetch done. If the cursor is closed, or the row has been deleted a null is returned.
| |
| getScanProperties | back to summary |
|---|---|
| public Properties getScanProperties() | |
| getTimeSpent | back to summary |
|---|---|
| public long getTimeSpent(int type) Implements org. Return the total amount of time spent in this ResultSet
| |
| initStartAndStopKey | back to summary |
|---|---|
| pack-priv void initStartAndStopKey() throws StandardException Initialize the | |
| isForUpdate | back to summary |
|---|---|
| public boolean isForUpdate() Overrides org. Implements org. Is this ResultSet or it's source result set for update
| |
| loopControl | back to summary |
|---|---|
| pack-priv boolean loopControl(boolean moreRows) throws StandardException | |
| openCore | back to summary |
|---|---|
| public void openCore() throws StandardException Implements org. open a scan on the table. scan parameters are evaluated at each open, so there is probably some way of altering their values...
| |
| openScanController | back to summary |
|---|---|
| protected void openScanController(TransactionController tc) throws StandardException | |
| positionScanAtRowLocation | back to summary |
|---|---|
| public void positionScanAtRowLocation(RowLocation rl) throws StandardException Overrides org. Implements org. Doc from org. Positions the cursor in the specified rowLocation. Used for scrollable insensitive result sets in order to position the cursor back to a row that has already be visited.
| |
| printPosition | back to summary |
|---|---|
| private String printPosition(int searchOperator, GeneratedMethod positionGetter, ExecIndexRow positioner) Return a start or stop positioner as a String. If we already generated the information, then use that. Otherwise, invoke the activation to get it. | |
| printStartPosition | back to summary |
|---|---|
| public String printStartPosition() Print an array of Qualifiers to the trace stream. | |
| printStopPosition | back to summary |
|---|---|
| public String printStopPosition() | |
| reopenCore | back to summary |
|---|---|
| public void reopenCore() throws StandardException Overrides org. Implements org. Reopen a table scan. Here we take advantage of the reopenScan() interface on scanController for optimimal performance on joins where we are an inner table.
| |
| reopenScanController | back to summary |
|---|---|
| protected void reopenScanController() throws StandardException | |
| requiresRelocking | back to summary |
|---|---|
| public boolean requiresRelocking() Overrides org. Implements org. Doc from org. Do we need to relock the row when going to the heap.
| |
| setRowCountIfPossible | back to summary |
|---|---|
| protected final void setRowCountIfPossible(long rowsThisScan) throws StandardException Update the number of rows in the scan controller. Note It would be more efficient to only update the scan controller if the optimizer's estimated number of rows were wrong by more than some threshold (like 10%). This would require a little more work than I have the time for now, however, as the row estimate that is given to this result set is the total number of rows for all scans, not the number of rows per scan.
| |