public class BTreeMaxScan extends BTreeScan
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_position, 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 and Description |
---|
BTreeMaxScan() |
Modifier and Type | Method and Description |
---|---|
boolean |
fetchMax(DataValueDescriptor[] fetch_row)
Fetch the maximum row in the table.
|
protected int |
fetchRows(BTreeRowPosition pos,
DataValueDescriptor[][] row_array,
RowLocation[] rowloc_array,
BackingStoreHashtable hash_table,
long max_rowcnt,
int[] key_column_numbers)
disallow fetchRows on this scan type, caller should only be able
to call fetchMax().
|
private boolean |
moveToLeftSibling()
Move the current position to the page to the left of the current page,
right after the last slot on that page.
|
protected void |
positionAtStartPosition(BTreeRowPosition pos)
Position scan at "start" position of the MAX scan.
|
close, closeForEndTransaction, delete, didNotQualify, doesCurrentPositionQualify, fetch, fetchLocation, fetchNext, fetchNextGroup, fetchNextGroup, fetchSet, fetchWithoutQualify, getCurrentRecordHandleForDebugging, getScanInfo, init, isCurrentPositionDeleted, isEmpty, isHeldAfterCommit, isKeyed, newRowLocationTemplate, next, positionAtDoneScan, positionAtDoneScanFromClose, positionAtNextPage, positionAtPreviousPage, positionAtRowLocation, positionAtStartForForwardScan, process_qualifier, reopenScan, reopenScanByRowLocation, replace, reposition, savePositionAndReleasePage, savePositionAndReleasePage, toString
checkConsistency, debugConglomerate, getColumnSortOrderInfo, getConglomerate, getContainer, getContainerHandle, getEstimatedRowCount, getHeight, getHold, getLockingPolicy, getLockLevel, getOpenMode, getRawTran, getRuntimeMem, getSpaceInfo, getXactMgr, init, isClosed, isIndexableRowConsistent, isTableLocked, reopen, setEstimatedRowCount, setLockingPolicy, test_errors
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isTableLocked
getEstimatedRowCount, setEstimatedRowCount
private boolean moveToLeftSibling() throws StandardException
StandardException
protected int fetchRows(BTreeRowPosition pos, DataValueDescriptor[][] row_array, RowLocation[] rowloc_array, BackingStoreHashtable hash_table, long max_rowcnt, int[] key_column_numbers) throws StandardException
fetchRows
in class BTreeScan
StandardException
- Standard exception policy.protected void positionAtStartPosition(BTreeRowPosition pos) throws StandardException
Positions the scan to the slot just after the last record on the rightmost leaf of the index. Returns the rightmost leaf page latched, the rightmost row on the page locked and sets "current_slot" to the slot number just right of the last row on the page.
positionAtStartPosition
in class BTreeScan
StandardException
- Standard exception policy.public boolean fetchMax(DataValueDescriptor[] fetch_row) throws StandardException
StandardException
- Standard exception policy.Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.