public class CacheDataTree extends BPlusTree<CacheSearchRow,CacheDataRow>
BPlusTree.Get, BPlusTree.Insert, BPlusTree.Invoke, BPlusTree.Put, BPlusTree.Replace, BPlusTree.Result, BPlusTree.Search, BPlusTree.TreeRowClosure<L,T extends L>, BPlusTree.TreeVisitorClosure<L,T extends L>IgniteTree.InvokeClosure<T>, IgniteTree.OperationTypeCONC_DESTROY_MSG, metaPageId, pageHndWrapper| Constructor and Description |
|---|
CacheDataTree(CacheGroupContext grp,
String name,
ReuseList reuseList,
CacheDataRowStore rowStore,
long metaPageId,
boolean initNew,
PageLockListener lockLsnr) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
compare(BPlusIO<CacheSearchRow> iox,
long pageAddr,
int idx,
CacheSearchRow row) |
GridCursor<CacheDataRow> |
find(CacheSearchRow lower,
CacheSearchRow upper,
BPlusTree.TreeRowClosure<CacheSearchRow,CacheDataRow> c,
Object x) |
CacheDataRow |
getRow(BPlusIO<CacheSearchRow> io,
long pageAddr,
int idx,
Object flags)
Get data row.
|
static boolean |
isDataPageScanEnabled() |
static Boolean |
isLastFindWithDataPageScan() |
CacheDataRowStore |
rowStore() |
static void |
setDataPageScanEnabled(boolean enabled)
Enable or disable data page scan.
|
protected IoStatisticsHolder |
statisticsHolder() |
acquirePage, checkDestroyed, compare, corruptedTreeException, destroy, destroy, find, find, findFirst, findFirst, findLast, findLast, findOne, findOne, findOne, getFirstPageIds, getLockRetries, getName, getRow, initTree, initTree, interruptAll, invoke, isEmpty, iterate, latestInnerIO, latestLeafIO, markDestroyed, printTree, processFailure, put, putx, read, read, remove, removex, rootLevel, setIos, size, size, toString, treeName, validateTree, visitacquirePage, allocatePage, allocatePage, allocatePageNoReuse, groupId, init, needWalDeltaRecord, pageSize, randomInt, read, read, readLock, readUnlock, recyclePage, releasePage, tryWriteLock, write, write, write, write, writeLock, writeUnlock, writeUnlockpublic CacheDataTree(CacheGroupContext grp, String name, ReuseList reuseList, CacheDataRowStore rowStore, long metaPageId, boolean initNew, PageLockListener lockLsnr) throws IgniteCheckedException
grp - Cache group.name - Tree name.reuseList - Reuse list.rowStore - Row store.metaPageId - Meta page ID.initNew - Initialize new index.IgniteCheckedException - If failed.public static void setDataPageScanEnabled(boolean enabled)
enabled - {code true} If enabled.public static boolean isDataPageScanEnabled()
true If data page scan is enabled.@TestOnly public static Boolean isLastFindWithDataPageScan()
true If the last observed call to the method find(...) used data page scan.public GridCursor<CacheDataRow> find(CacheSearchRow lower, CacheSearchRow upper, BPlusTree.TreeRowClosure<CacheSearchRow,CacheDataRow> c, Object x) throws IgniteCheckedException
find in class BPlusTree<CacheSearchRow,CacheDataRow>lower - Lower bound inclusive or null if unbounded.upper - Upper bound inclusive or null if unbounded.c - Filter closure.x - Implementation specific argument, null always means that we need to return full detached data row.IgniteCheckedException - If failed.public CacheDataRowStore rowStore()
protected int compare(BPlusIO<CacheSearchRow> iox, long pageAddr, int idx, CacheSearchRow row) throws IgniteCheckedException
compare in class BPlusTree<CacheSearchRow,CacheDataRow>iox - IO.pageAddr - Page address.idx - Index of row in the given buffer.row - Lookup row.Comparator.compare(Object, Object).IgniteCheckedException - If failed.public CacheDataRow getRow(BPlusIO<CacheSearchRow> io, long pageAddr, int idx, Object flags)
BPlusTree.canGetRowFromInner is true.getRow in class BPlusTree<CacheSearchRow,CacheDataRow>io - IO.pageAddr - Page address.idx - Index.flags - Implementation specific argument, null always means that we need to return full detached data row.protected IoStatisticsHolder statisticsHolder()
statisticsHolder in class BPlusTree<CacheSearchRow,CacheDataRow>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020