Class OnHeapLevelIndexHeader
- java.lang.Object
-
- org.apache.flink.runtime.state.heap.OnHeapLevelIndexHeader
-
- All Implemented Interfaces:
LevelIndexHeader
public class OnHeapLevelIndexHeader extends Object implements LevelIndexHeader
Implementation ofLevelIndexHeaderwhich stores index on heap.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLevel()Returns the top level of skip list.longgetNextNode(int level)Returns the next node in the given level.voidupdateLevel(int level)Updates the top level of skip list to the given level.voidupdateNextNode(int level, long node)Updates the next node in the given level to the specified node id.
-
-
-
Method Detail
-
getLevel
public int getLevel()
Description copied from interface:LevelIndexHeaderReturns the top level of skip list.- Specified by:
getLevelin interfaceLevelIndexHeader- Returns:
- the top level of skip list.
-
updateLevel
public void updateLevel(int level)
Description copied from interface:LevelIndexHeaderUpdates the top level of skip list to the given level.- Specified by:
updateLevelin interfaceLevelIndexHeader- Parameters:
level- the level which top level of skip list updates to.
-
getNextNode
public long getNextNode(int level)
Description copied from interface:LevelIndexHeaderReturns the next node in the given level.- Specified by:
getNextNodein interfaceLevelIndexHeader- 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:LevelIndexHeaderUpdates the next node in the given level to the specified node id.- Specified by:
updateNextNodein interfaceLevelIndexHeader- Parameters:
level- the level whose next node is updated.node- the id of the next node.
-
-