public class OnHeapLevelIndexHeader extends Object implements LevelIndexHeader
LevelIndexHeader
which stores index on heap.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 node)
Updates the next node in the given level to the specified node id.
|
public int getLevel()
LevelIndexHeader
getLevel
in interface LevelIndexHeader
public void updateLevel(int level)
LevelIndexHeader
updateLevel
in interface LevelIndexHeader
level
- the level which top level of skip list updates to.public long getNextNode(int level)
LevelIndexHeader
getNextNode
in interface LevelIndexHeader
level
- the level whose next node is returned.public void updateNextNode(int level, long node)
LevelIndexHeader
updateNextNode
in interface LevelIndexHeader
level
- the level whose next node is updated.node
- the id of the next node.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.