public abstract class H2Tree extends BPlusTree<org.h2.result.SearchRow,GridH2Row>
BPlusTree.DestroyBag, BPlusTree.TreeRowClosure<L,T extends L>IgniteTree.InvokeClosure<T>, IgniteTree.OperationTypemetaPageId| Modifier | Constructor and Description |
|---|---|
protected |
H2Tree(String name,
ReuseList reuseList,
int grpId,
PageMemory pageMem,
IgniteWriteAheadLogManager wal,
AtomicLong globalRmvId,
H2RowFactory rowStore,
long metaPageId,
boolean initNew,
org.h2.table.IndexColumn[] cols,
List<InlineIndexHelper> inlineIdxs,
int inlineSize,
H2RowCache rowCache)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
compare(BPlusIO<org.h2.result.SearchRow> io,
long pageAddr,
int idx,
org.h2.result.SearchRow row) |
int |
compareRows(org.h2.result.SearchRow r1,
org.h2.result.SearchRow r2)
Compares two H2 rows.
|
abstract int |
compareValues(org.h2.value.Value v1,
org.h2.value.Value v2) |
GridH2Row |
createRowFromLink(long link)
Create row from link.
|
protected GridH2Row |
getRow(BPlusIO<org.h2.result.SearchRow> io,
long pageAddr,
int idx,
Object filter) |
compare, destroy, destroy, find, find, findFirst, findLast, findOne, findOne, getFirstPageIds, getLockRetries, getName, getRow, initTree, initTree, interruptAll, invoke, latestInnerIO, latestLeafIO, printTree, put, putx, remove, removex, rootLevel, setIos, size, size, toString, treeName, validateTreeacquirePage, allocatePage, allocatePage, allocatePageNoReuse, groupId, init, needWalDeltaRecord, onBeforeReadLock, onBeforeWriteLock, onReadLock, onReadUnlock, onWriteLock, onWriteUnlock, pageSize, randomInt, read, read, readLock, readUnlock, recyclePage, releasePage, tryWriteLock, write, write, write, write, writeLock, writeUnlock, writeUnlockprotected H2Tree(String name, ReuseList reuseList, int grpId, PageMemory pageMem, IgniteWriteAheadLogManager wal, AtomicLong globalRmvId, H2RowFactory rowStore, long metaPageId, boolean initNew, org.h2.table.IndexColumn[] cols, List<InlineIndexHelper> inlineIdxs, int inlineSize, @Nullable H2RowCache rowCache) throws IgniteCheckedException
name - Tree name.reuseList - Reuse list.grpId - Cache group ID.pageMem - Page memory.wal - Write ahead log manager.rowStore - Row data store.metaPageId - Meta page ID.initNew - Initialize new index.rowCache - Row cache.IgniteCheckedException - If failed.public GridH2Row createRowFromLink(long link) throws IgniteCheckedException
link - Link.IgniteCheckedException - if failed.protected GridH2Row getRow(BPlusIO<org.h2.result.SearchRow> io, long pageAddr, int idx, Object filter) throws IgniteCheckedException
getRow in class BPlusTree<org.h2.result.SearchRow,GridH2Row>IgniteCheckedExceptionprotected int compare(BPlusIO<org.h2.result.SearchRow> io, long pageAddr, int idx, org.h2.result.SearchRow row) throws IgniteCheckedException
compare in class BPlusTree<org.h2.result.SearchRow,GridH2Row>IgniteCheckedExceptionpublic int compareRows(org.h2.result.SearchRow r1,
org.h2.result.SearchRow r2)
r1 - Row 1.r2 - Row 2.Comparator.compare(Object, Object) for values.public abstract int compareValues(org.h2.value.Value v1,
org.h2.value.Value v2)
v1 - First value.v2 - Second value.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018