public interface LevelIndexHeader
Modifier and Type | Method and Description |
---|---|
int |
getLevel()
Returns the top level of skip list.
|
long |
getNextNode(int level)
Returns the next node in the given level.
|
void |
updateLevel(int level)
Updates the top level of skip list to the given level.
|
void |
updateNextNode(int level,
long newNodeId)
Updates the next node in the given level to the specified node id.
|
int getLevel()
void updateLevel(int level)
level
- the level which top level of skip list updates to.long getNextNode(int level)
level
- the level whose next node is returned.void updateNextNode(int level, long newNodeId)
level
- the level whose next node is updated.newNodeId
- the id of the next node.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.