Class OnHeapLevelIndexHeader

    • Method Detail

      • getLevel

        public int getLevel()
        Description copied from interface: LevelIndexHeader
        Returns the top level of skip list.
        Specified by:
        getLevel in interface LevelIndexHeader
        Returns:
        the top level of skip list.
      • updateLevel

        public void updateLevel​(int level)
        Description copied from interface: LevelIndexHeader
        Updates the top level of skip list to the given level.
        Specified by:
        updateLevel in interface LevelIndexHeader
        Parameters:
        level - the level which top level of skip list updates to.
      • getNextNode

        public long getNextNode​(int level)
        Description copied from interface: LevelIndexHeader
        Returns the next node in the given level.
        Specified by:
        getNextNode in interface LevelIndexHeader
        Parameters:
        level - the level whose next node is returned.
        Returns:
        id of the next node.
      • updateNextNode

        public void updateNextNode​(int level,
                                   long node)
        Description copied from interface: LevelIndexHeader
        Updates the next node in the given level to the specified node id.
        Specified by:
        updateNextNode in interface LevelIndexHeader
        Parameters:
        level - the level whose next node is updated.
        node - the id of the next node.