Class MetastoragePageIOUtils
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.metastorage.MetastoragePageIOUtils
-
public class MetastoragePageIOUtils extends Object
MetastorageInnerIOandMetastorageLeafIOuse 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 Summary
Constructors Constructor Description MetastoragePageIOUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO>
MetastorageDataRowgetDataRow(IO io, long pageAddr, int idx, MetastorageRowStore rowStore)static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO>
StringgetKey(IO io, long pageAddr, int idx, MetastorageRowStore rowStore)static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO>
shortgetKeySize(IO io, long pageAddr, int idx)static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO>
longgetLink(IO io, long pageAddr, int idx)static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO>
voidstore(IO dstIo, long dstPageAddr, int dstIdx, BPlusIO<MetastorageRow> srcIo, long srcPageAddr, int srcIdx)static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO>
voidstoreByOffset(IO io, long pageAddr, int off, MetastorageRow row)
-
-
-
Method Detail
-
getLink
public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> long getLink(IO io, long pageAddr, int idx)
- See Also:
MetastorageBPlusIO.getLink(long, int)
-
getKeySize
public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> short getKeySize(IO io, long pageAddr, int idx)
- See Also:
MetastorageBPlusIO.getKeySize(long, int)
-
getKey
public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> String getKey(IO io, long pageAddr, int idx, MetastorageRowStore rowStore) throws IgniteCheckedException
-
getDataRow
public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> MetastorageDataRow getDataRow(IO io, long pageAddr, int idx, MetastorageRowStore rowStore) throws IgniteCheckedException
-
store
public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> void store(IO dstIo, long dstPageAddr, int dstIdx, BPlusIO<MetastorageRow> srcIo, long srcPageAddr, int srcIdx)
-
storeByOffset
public static <IO extends BPlusIO<MetastorageRow> & MetastorageBPlusIO> void storeByOffset(IO io, long pageAddr, int off, MetastorageRow row)
- See Also:
BPlusIO.storeByOffset(long, int, Object)
-
-