public final class BPlusTree.Put extends BPlusTree.Get
| Modifier and Type | Method and Description |
|---|---|
protected BPlusTree.Result |
finishOrLockTail(long pageId,
long page,
long backId,
long fwdId,
int lvl)
Method that's invoked when operation goes up from the recursion and
BPlusTree.Get.isFinished() returns false. |
protected BPlusTree.Result |
finishTail()
Process tail and finish.
|
void |
replaceRowInPage(BPlusIO<L> io,
long pageId,
long page,
long pageAddr,
int idx)
Replaces a row in the page with a new one.
|
BPlusTree.Result |
tryReplace(long pageId,
long page,
long fwdId,
int lvl) |
rowprotected BPlusTree.Result finishOrLockTail(long pageId, long page, long backId, long fwdId, int lvl) throws IgniteCheckedException
BPlusTree.Get.isFinished() returns false.
Either finishes the operation or locks the page for further processing on another level.
Returns BPlusTree.Result.FOUND if operation has finished and BPlusTree.Get.isFinished() returns true now.
Returns BPlusTree.Result.RETRY if operation should be retried.
Returns BPlusTree.Result.NOT_FOUND if operation has added the page to tail, meaning that operation can't be
finished on current level.pageId - Page ID.page - Page pointer.backId - Back page ID.fwdId - Forward ID.lvl - Level.IgniteCheckedException - If failed.protected BPlusTree.Result finishTail() throws IgniteCheckedException
finishOrLockTail(long, long, long, long, int) but doesn't add the
page to the tail.IgniteCheckedException - If failed.public BPlusTree.Result tryReplace(long pageId, long page, long fwdId, int lvl) throws IgniteCheckedException
pageId - Page ID.page - Page pointer.fwdId - Forward ID.lvl - Level.IgniteCheckedException - If failed.public void replaceRowInPage(BPlusIO<L> io, long pageId, long page, long pageAddr, int idx) throws IgniteCheckedException
io - Page IO for the page.pageId - Page id.page - Page pointer.pageAddr - Page address.idx - Replacement index.IgniteCheckedException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023