public class MetastoragePageIOUtils extends Object
MetastorageInnerIO and MetastorageLeafIO use the same page format but cannot explicitly share the
same implementation, because they are inherited from two independant abstract classes. So this util class contains
that implementation and should be used to avoid code duplication.| Constructor and Description |
|---|
MetastoragePageIOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> |
getDataRow(IO io,
long pageAddr,
int idx,
MetastorageRowStore rowStore) |
static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> |
getKey(IO io,
long pageAddr,
int idx,
MetastorageRowStore rowStore) |
static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> |
getKeySize(IO io,
long pageAddr,
int idx) |
static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> |
getLink(IO io,
long pageAddr,
int idx) |
static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> |
store(IO dstIo,
long dstPageAddr,
int dstIdx,
BPlusIO<MetastorageRow> srcIo,
long srcPageAddr,
int srcIdx) |
static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> |
storeByOffset(IO io,
long pageAddr,
int off,
MetastorageRow row) |
public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> long getLink(IO io, long pageAddr, int idx)
MetastorageBPlusIO.getLink(long, int)public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> short getKeySize(IO io, long pageAddr, int idx)
MetastorageBPlusIO.getKeySize(long, int)public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> String getKey(IO io, long pageAddr, int idx, MetastorageRowStore rowStore) throws IgniteCheckedException
public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> MetastorageDataRow getDataRow(IO io, long pageAddr, int idx, MetastorageRowStore rowStore) throws IgniteCheckedException
public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> void store(IO dstIo, long dstPageAddr, int dstIdx, BPlusIO<MetastorageRow> srcIo, long srcPageAddr, int srcIdx)
public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> void storeByOffset(IO io, long pageAddr, int off, MetastorageRow row)
BPlusIO.storeByOffset(long, int, Object)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020