Package db.buffers
Class ChangeMap
java.lang.Object
db.buffers.ChangeMap
ChangeMap facilitates the decoding of change-data
to determine if a specific buffer was modified by the
corresponding buffer file version.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsIndex(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 arraybooleanhasChanged(int index) Returns true if the change map data indicates that the specified buffer has been modified.
-
Constructor Details
-
ChangeMap
public ChangeMap(byte[] mapData) Constructor.- Parameters:
mapData- change map data
-
-
Method Details
-
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.
-