Class PofDeltaCompressor.ChangeTracker

java.lang.Object
com.tangosol.io.pof.PofDeltaCompressor.ChangeTracker
Enclosing class:
PofDeltaCompressor

protected static class PofDeltaCompressor.ChangeTracker extends Object
When determining a delta between two POF buffers, the ChangeTracker keeps track of whether the current location within the two POF streams is part of a differing portion or part of an identical portion.
  • Constructor Details

    • ChangeTracker

      public ChangeTracker(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew) throws IOException
      Construct a ChangeTracker that will produce a delta between the two passed streams.
      Parameters:
      inOld - the BuferInput for the old value
      inNew - the BuferInput for the new value
      Throws:
      IOException - if some use of the underlying streams throws an exception
  • Method Details

    • advance

      public void advance(boolean fSame) throws IOException
      Update the tracker to indicate that the most recently scanned region was the same or different.
      Parameters:
      fSame - pass true if the most recently scanned region of the streams was identical; false otherwise
      Throws:
      IOException - if some use of the underlying streams throws an exception
    • getDelta

      public Binary getDelta() throws IOException
      Obtain the final delta result as a Binary value.
      Returns:
      a Binary containing the delta value
      Throws:
      IOException - if some use of the underlying streams throws an exception