Class OffHeapPageMetaInfoStore

    • Constructor Detail

      • OffHeapPageMetaInfoStore

        public OffHeapPageMetaInfoStore​(int capacity,
                                        @Nullable
                                        @Nullable MemoryCalculator memCalc)
    • Method Detail

      • add

        public void add​(int itemIdx,
                        int op,
                        int structureId,
                        long pageId,
                        long pageAddrHeader,
                        long pageAddr)
        Add page to store.
        Specified by:
        add in interface PageMetaInfoStore
        Parameters:
        itemIdx - Index of page in store.
        op - Page operation.
        structureId - Data structure id.
        pageId - Page id.
        pageAddrHeader - Page header addres.
        pageAddr - Page addres.
      • remove

        public void remove​(int itemIdx)
        Remove page from store by index.
        Specified by:
        remove in interface PageMetaInfoStore
      • getOperation

        public int getOperation​(int itemIdx)
        Specified by:
        getOperation in interface PageMetaInfoStore
        Parameters:
        itemIdx - Index of page in store.
        Returns:
        Page operation.
      • getStructureId

        public int getStructureId​(int itemIdx)
        Specified by:
        getStructureId in interface PageMetaInfoStore
        Parameters:
        itemIdx - Index of page in store.
        Returns:
        Data structure id.
      • getPageId

        public long getPageId​(int itemIdx)
        Specified by:
        getPageId in interface PageMetaInfoStore
        Parameters:
        itemIdx - Index of page in store.
        Returns:
        Page id.
      • getPageAddrHeader

        public long getPageAddrHeader​(int itemIdx)
        Specified by:
        getPageAddrHeader in interface PageMetaInfoStore
        Parameters:
        itemIdx - Index of page in store.
        Returns:
        Page header address.
      • getPageAddr

        public long getPageAddr​(int itemIdx)
        Specified by:
        getPageAddr in interface PageMetaInfoStore
        Parameters:
        itemIdx - Index of page in store.
        Returns:
        Page address.