Package db.buffers
Class ChangeMap
- java.lang.Object
-
- db.buffers.ChangeMap
-
public class ChangeMap extends java.lang.Object
ChangeMap
facilitates the decoding of change-data to determine if a specific buffer was modified by the corresponding buffer file version.- See Also:
ChangeMapFile
-
-
Constructor Summary
Constructors Constructor Description ChangeMap(byte[] mapData)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsIndex(int index)
Returns true if the specified index is within the bounds of this map.byte[]
getData()
Get the underlying change map data as a byte arrayboolean
hasChanged(int index)
Returns true if the change map data indicates that the specified buffer has been modified.
-
-
-
Method Detail
-
getData
public byte[] getData()
Get the underlying change map data as a byte array- Returns:
- change map data
-
hasChanged
public boolean hasChanged(int index)
Returns true if the change map data indicates that the specified buffer has been modified.- Parameters:
index
- buffer index
-
containsIndex
public boolean containsIndex(int index)
Returns true if the specified index is within the bounds of this map.
-
-