Class MetaPageInfo


  • public class MetaPageInfo
    extends Object
    Meta page stores meta data about InlineIndexTree.
    • 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:
        true In case use unwrapped PK for indexes.
      • flagsSupported

        public boolean flagsSupported()
        Returns:
        true In case metapage contains flags.
      • inlineObjectSupported

        public boolean inlineObjectSupported()
        Returns:
        true In case inline object is supported.
      • inlineObjectHash

        public boolean inlineObjectHash()
        Returns:
        true In 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 IgniteCheckedException
        Writes meta page info into page memory.
        Parameters:
        metaPageId - Meta page ID.
        grpId - Cache group ID.
        pageMemory - Page memory.
        Throws:
        IgniteCheckedException - If something went wrong.