public class MetastorageTree extends BPlusTree<MetastorageRow,MetastorageDataRow>
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.OperationType| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_KEY_LEN
Max key length (bytes num)
|
CONC_DESTROY_MSG, IGNITE_BPLUS_TREE_LOCK_RETRIES_DEFAULT, metaPageId, suspendFailureDiagnostic, testHndWrapper| Constructor and Description |
|---|
MetastorageTree(int cacheId,
String name,
PageMemory pageMem,
IgniteWriteAheadLogManager wal,
AtomicLong globalRmvId,
ReuseList reuseList,
MetastorageRowStore rowStore,
long metaPageId,
boolean initNew,
@Nullable FailureProcessor failureProcessor,
int partId,
@Nullable PageLockListener lockLsnr) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
allocatePageNoReuse() |
protected int |
compare(BPlusIO<MetastorageRow> io,
long pageAddr,
int idx,
MetastorageRow row) |
MetastorageDataRow |
getRow(BPlusIO<MetastorageRow> io,
long pageAddr,
int idx,
Object x)
Get data row.
|
MetastorageRowStore |
rowStore() |
acquirePage, checkDestroyed, compare, corruptedTreeException, destroy, destroy, destroyDownPages, enableSequentialWriteMode, find, find, find, findFirst, findFirst, findLast, findLast, findOne, findOne, findOne, getFirstPageIds, getLockRetries, getMetaPageId, getName, getRow, initTree, initTree, interruptAll, invoke, isEmpty, iterate, latestInnerIO, latestLeafIO, markDestroyed, maxLockHoldTime, printTree, processFailure, put, putx, read, read, remove, removex, rootLevel, setIos, size, size, statisticsHolder, temporaryReleaseLock, toString, treeName, validateTree, visitacquirePage, allocatePage, allocatePage, groupId, init, needWalDeltaRecord, pageSize, randomInt, read, read, readLock, readUnlock, recyclePage, releasePage, tryWriteLock, write, write, write, write, writeLock, writeUnlock, writeUnlockpublic static final int MAX_KEY_LEN
public MetastorageTree(int cacheId,
String name,
PageMemory pageMem,
IgniteWriteAheadLogManager wal,
AtomicLong globalRmvId,
ReuseList reuseList,
MetastorageRowStore rowStore,
long metaPageId,
boolean initNew,
@Nullable
@Nullable FailureProcessor failureProcessor,
int partId,
@Nullable
@Nullable PageLockListener lockLsnr)
throws IgniteCheckedException
pageMem - Page memory instance.wal - WAL manager.globalRmvId - Global remove ID.metaPageId - Meta page ID.reuseList - Reuse list.rowStore - Row store.initNew - Init new flag, if true, then new tree will be allocated.failureProcessor - To call if the tree is corrupted.IgniteCheckedException - If failed to initialize.protected int compare(BPlusIO<MetastorageRow> io, long pageAddr, int idx, MetastorageRow row) throws IgniteCheckedException
compare in class BPlusTree<MetastorageRow,MetastorageDataRow>io - IO.pageAddr - Page address.idx - Index of row in the given buffer.row - Lookup row.Comparator.compare(Object, Object).IgniteCheckedException - If failed.public MetastorageDataRow getRow(BPlusIO<MetastorageRow> io, long pageAddr, int idx, Object x) throws IgniteCheckedException
BPlusTree.canGetRowFromInner is true.getRow in class BPlusTree<MetastorageRow,MetastorageDataRow>io - IO.pageAddr - Page address.idx - Index.x - Implementation specific argument, null always means that we need to return full detached data row.IgniteCheckedException - If failed.public MetastorageRowStore rowStore()
protected long allocatePageNoReuse()
throws IgniteCheckedException
allocatePageNoReuse in class DataStructureIgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021