Class AbstractDataInnerIO

    • Constructor Detail

      • AbstractDataInnerIO

        protected AbstractDataInnerIO​(int type,
                                      int ver,
                                      boolean canGetRow,
                                      int itemSize)
        Parameters:
        type - Page type.
        ver - Page format version.
        canGetRow - If we can get full row from this page.
        itemSize - Single item size on page.
    • Method Detail

      • storeByOffset

        public final void storeByOffset​(long pageAddr,
                                        int off,
                                        CacheSearchRow row)
        Store the needed info about the row in the page. Leaf and inner pages can store different info.
        Specified by:
        storeByOffset in class BPlusIO<CacheSearchRow>
        Parameters:
        pageAddr - Page address.
        off - Offset in bytes.
        row - Lookup or full row.
      • store

        public final void store​(long dstPageAddr,
                                int dstIdx,
                                BPlusIO<CacheSearchRow> srcIo,
                                long srcPageAddr,
                                int srcIdx)
        Store row info from the given source.
        Specified by:
        store in class BPlusIO<CacheSearchRow>
        Parameters:
        dstPageAddr - Destination page address.
        dstIdx - Destination index.
        srcIo - Source IO.
        srcPageAddr - Source page address.
        srcIdx - Source index.
      • getLink

        public final long getLink​(long pageAddr,
                                  int idx)
        Specified by:
        getLink in interface RowLinkIO
        Parameters:
        pageAddr - Page address.
        idx - Index.
        Returns:
        Row link.
      • getHash

        public final int getHash​(long pageAddr,
                                 int idx)
        Specified by:
        getHash in interface RowLinkIO
        Parameters:
        pageAddr - Page address.
        idx - Index.
        Returns:
        Key hash code.
      • storeCacheId

        protected boolean storeCacheId()
        Returns:
        True if cache ID has to be stored.