Package db.buffers

Class 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 array
      boolean hasChanged​(int index)
      Returns true if the change map data indicates that the specified buffer has been modified.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChangeMap

        public ChangeMap​(byte[] mapData)
        Constructor.
        Parameters:
        mapData - change map data
    • 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.