ScanManager
, GenericScanController
, GroupFetchScanController
, RowCountable
, ScanController
public class B2IForwardScan extends BTreeForwardScan
Modifier and Type | Field | Description |
---|---|---|
private ConglomerateController |
base_cc_for_locking |
|
private int |
init_isolation_level |
fetchNext_one_slot_array, init_fetchDesc, init_forUpdate, init_hold, init_lock_fetch_desc, init_qualifier, init_rawtran, init_scanColumnList, init_startKeyValue, init_startSearchOperator, init_stopKeyValue, init_stopSearchOperator, init_template, init_useUpdateLocks, lock_operation, SCAN_DONE, SCAN_HOLD_INIT, SCAN_HOLD_INPROGRESS, SCAN_INIT, SCAN_INPROGRESS, scan_state, stat_numdeleted_rows_visited, stat_numpages_visited, stat_numrows_qualified, stat_numrows_visited
btree_undo, container, err_containerid, init_lock_level, init_open_user_scans, runtime_mem
GE, GT, NA
Constructor | Description |
---|---|
B2IForwardScan() |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Close the scan.
|
boolean |
closeForEndTransaction(boolean closeHeldScan) |
Close the scan, a commit or abort is about to happen.
|
void |
init(TransactionManager xact_manager,
Transaction rawtran,
boolean hold,
int open_mode,
int lock_level,
LockingPolicy locking_policy,
int isolation_level,
boolean open_for_locking,
FormatableBitSet scanColumnList,
DataValueDescriptor[] startKeyValue,
int startSearchOperator,
Qualifier[][] qualifier,
DataValueDescriptor[] stopKeyValue,
int stopSearchOperator,
B2I conglomerate,
B2IUndo undo,
B2IStaticCompiledInfo static_info,
DynamicCompiledOpenConglomInfo dynamic_info) |
Initialize the scan for use.
|
ContainerHandle |
reopen() |
Open the container after it has been closed previously.
|
fetchRows, positionAtStartPosition
delete, didNotQualify, doesCurrentPositionQualify, fetch, fetchLocation, fetchNext, fetchNextGroup, fetchNextGroup, fetchSet, fetchWithoutQualify, getCurrentRecordHandleForDebugging, getScanInfo, init, isCurrentPositionDeleted, isHeldAfterCommit, isKeyed, newRowLocationTemplate, next, positionAtDoneScan, positionAtDoneScanFromClose, positionAtNextPage, positionAtPreviousPage, positionAtRowLocation, positionAtStartForForwardScan, process_qualifier, reopenScan, reopenScanByRowLocation, replace, reposition, toString
isTableLocked
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkConsistency, debugConglomerate, getColumnSortOrderInfo, getConglomerate, getContainer, getContainerHandle, getEstimatedRowCount, getHeight, getHold, getLockingPolicy, getLockLevel, getOpenMode, getRawTran, getRuntimeMem, getSpaceInfo, getXactMgr, init, isClosed, isTableLocked, setEstimatedRowCount, setLockingPolicy, test_errors
getEstimatedRowCount, setEstimatedRowCount
private ConglomerateController base_cc_for_locking
private int init_isolation_level
public void close() throws StandardException
close
in interface GenericScanController
close
in class BTreeScan
StandardException
- Standard exception policy.GenericScanController.newRowLocationTemplate()
public boolean closeForEndTransaction(boolean closeHeldScan) throws StandardException
closeForEndTransaction
in interface ScanManager
closeForEndTransaction
in class BTreeScan
closeHeldScan
- If true, means to close scan even if it has been
opened to be kept opened across commit. This is
used to close these scans on abort.StandardException
- Standard exception policy.public ContainerHandle reopen() throws StandardException
Open the container, obtaining necessary locks. Most work is actually done by RawStore.openContainer(). Will only reopen() if the container is not already open.
reopen
in class OpenBTree
StandardException
- Standard exception policy.public void init(TransactionManager xact_manager, Transaction rawtran, boolean hold, int open_mode, int lock_level, LockingPolicy locking_policy, int isolation_level, boolean open_for_locking, FormatableBitSet scanColumnList, DataValueDescriptor[] startKeyValue, int startSearchOperator, Qualifier[][] qualifier, DataValueDescriptor[] stopKeyValue, int stopSearchOperator, B2I conglomerate, B2IUndo undo, B2IStaticCompiledInfo static_info, DynamicCompiledOpenConglomInfo dynamic_info) throws StandardException
Any changes to this method may have to be reflected in close as well.
The btree init opens the container (super.init), and stores away the state of the qualifiers. The actual searching for the first position is delayed until the first next() call.
StandardException
- Standard exception policy.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.