Class AbstractDataLeafIO

    • Constructor Detail

      • AbstractDataLeafIO

        public AbstractDataLeafIO​(int type,
                                  int ver,
                                  int itemSize)
        Parameters:
        type - Page type.
        ver - Page format version.
        itemSize - Single item size on page.
    • Method Detail

      • storeByOffset

        public 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 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

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