Class MetaPageInfo
- java.lang.Object
-
- org.apache.ignite.internal.cache.query.index.sorted.MetaPageInfo
-
public class MetaPageInfo extends Object
Meta page stores meta data about InlineIndexTree.
-
-
Constructor Summary
Constructors Constructor Description MetaPageInfo(BPlusMetaIO io, long pageAddr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanflagsSupported()booleaninlineObjectHash()booleaninlineObjectSupported()intinlineSize()static MetaPageInforead(long metaPageId, int grpId, PageMemory pageMemory)Reads meta page info from page memory.booleanuseUnwrappedPk()voidwrite(long metaPageId, int grpId, PageMemory pageMemory)Writes meta page info into page memory.
-
-
-
Constructor Detail
-
MetaPageInfo
public MetaPageInfo(BPlusMetaIO io, long pageAddr)
- Parameters:
io- Metapage IO.pageAddr- Page address.
-
-
Method Detail
-
inlineSize
public int inlineSize()
- Returns:
- Inline size.
-
useUnwrappedPk
public boolean useUnwrappedPk()
- Returns:
trueIn case use unwrapped PK for indexes.
-
flagsSupported
public boolean flagsSupported()
- Returns:
trueIn case metapage contains flags.
-
inlineObjectSupported
public boolean inlineObjectSupported()
- Returns:
trueIn case inline object is supported.
-
inlineObjectHash
public boolean inlineObjectHash()
- Returns:
trueIn case inline object is supported.
-
read
public static MetaPageInfo read(long metaPageId, int grpId, PageMemory pageMemory) throws IgniteCheckedException
Reads meta page info from page memory.- Parameters:
metaPageId- Meta page ID.grpId- Cache group ID.pageMemory- Page memory.- Returns:
- Meta page info.
- Throws:
IgniteCheckedException- If something went wrong.
-
write
public void write(long metaPageId, int grpId, PageMemory pageMemory) throws IgniteCheckedExceptionWrites meta page info into page memory.- Parameters:
metaPageId- Meta page ID.grpId- Cache group ID.pageMemory- Page memory.- Throws:
IgniteCheckedException- If something went wrong.
-
-