| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| protected int | fetchRows(BTreeRowPosition pos, DataValueDescriptor[][] row_array, RowLocation[] rowloc_array, BackingStoreHashtable hash_table, long max_rowcnt, int[] key_column_numbers)
Implements abstract org. disallow fetchRows on this scan type, caller should only be able to call fetchMax(). |
| private boolean | Returns: true if the position was successfully moved, false if we had to wait for a latchMove 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)
Implements abstract org. Position scan at "start" position of the MAX scan. |
| BTreeMaxScan | back to summary |
|---|---|
| public BTreeMaxScan() | |
| fetchMax | back to summary |
|---|---|
| public boolean fetchMax(DataValueDescriptor[] fetch_row) throws StandardException Fetch the maximum row in the table. Call positionAtStartPosition() to quickly position on rightmost row of rightmost leaf of tree. Search last page for last non deleted row, and if one is found return it as max. If no row found on last page, or could not find row without losing latch then call fetchMaxRowFromBeginning() to search from left to right for maximum value in index.
| |
| fetchRows | back to summary |
|---|---|
| protected int fetchRows(BTreeRowPosition pos, DataValueDescriptor[][] row_array, RowLocation[] rowloc_array, BackingStoreHashtable hash_table, long max_rowcnt, int[] key_column_numbers) throws StandardException Implements abstract org. disallow fetchRows on this scan type, caller should only be able to call fetchMax().
| |
| moveToLeftSibling | back to summary |
|---|---|
| private boolean moveToLeftSibling() throws StandardException Move the current position to the page to the left of the current page, right after the last slot on that page. If we have to wait for a latch, give up the latch on the current leaf and give up. The caller will have to reposition and retry.
| |
| positionAtStartPosition | back to summary |
|---|---|
| protected void positionAtStartPosition(BTreeRowPosition pos) throws StandardException Implements abstract org. Position scan at "start" position of the MAX scan. 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.
| |