public abstract class H2Tree
extends <any>
| Modifier | Constructor and Description |
|---|---|
protected |
H2Tree(String name,
String idxName,
String cacheName,
String tblName,
ReuseList reuseList,
int grpId,
PageMemory pageMem,
IgniteWriteAheadLogManager wal,
AtomicLong globalRmvId,
H2RowFactory rowStore,
long metaPageId,
boolean initNew,
IndexColumn[] cols,
List<InlineIndexHelper> inlineIdxs,
int inlineSize,
AtomicInteger maxCalculatedInlineSize,
boolean pk,
boolean affinityKey,
boolean mvccEnabled,
H2RowCache rowCache,
FailureProcessor failureProcessor,
IgniteLogger log)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
compare(<any> io,
long pageAddr,
int idx,
GridH2SearchRow row) |
int |
compareRows(GridH2SearchRow r1,
GridH2SearchRow r2)
Compares two H2 rows.
|
abstract int |
compareValues(Value v1,
Value v2) |
boolean |
created() |
GridH2Row |
createRowFromLink(long link)
Create row from link.
|
GridH2Row |
createRowFromLink(long link,
long mvccCrdVer,
long mvccCntr,
int mvccOpCntr)
Create row from link.
|
GridH2Row |
getRow(<any> io,
long pageAddr,
int idx,
Object ignore) |
String |
toString() |
protected H2Tree(String name, String idxName, String cacheName, String tblName, ReuseList reuseList, int grpId, PageMemory pageMem, IgniteWriteAheadLogManager wal, AtomicLong globalRmvId, H2RowFactory rowStore, long metaPageId, boolean initNew, IndexColumn[] cols, List<InlineIndexHelper> inlineIdxs, int inlineSize, AtomicInteger maxCalculatedInlineSize, boolean pk, boolean affinityKey, boolean mvccEnabled, H2RowCache rowCache, FailureProcessor failureProcessor, IgniteLogger log) throws IgniteCheckedException
name - Tree name.idxName - Name of index.cacheName - Cache name.tblName - Table 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.pk - true for primary key.affinityKey - true for affinity key.mvccEnabled - Mvcc flag.failureProcessor - if the tree is corrupted.log - Logger.IgniteCheckedException - If failed.public GridH2Row createRowFromLink(long link) throws IgniteCheckedException
link - Link.IgniteCheckedException - if failed.public GridH2Row createRowFromLink(long link, long mvccCrdVer, long mvccCntr, int mvccOpCntr) throws IgniteCheckedException
link - Link.mvccOpCntr - MVCC operation counter.IgniteCheckedException - if failed.public GridH2Row getRow(<any> io, long pageAddr, int idx, Object ignore) throws IgniteCheckedException
IgniteCheckedExceptionprotected int compare(<any> io,
long pageAddr,
int idx,
GridH2SearchRow row)
throws IgniteCheckedException
IgniteCheckedExceptionpublic int compareRows(GridH2SearchRow r1, GridH2SearchRow r2)
r1 - Row 1.r2 - Row 2.Comparator.compare(Object, Object) for values.public abstract int compareValues(Value v1,
Value v2)
v1 - First value.v2 - Second value.public boolean created()
True if index was created during curren node's lifetime, False if it was restored from
disk.public String toString()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2-p3 Release Date : April 25 2019