Package com.tangosol.io.pof
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 Summary
Constructors Constructor Description ChangeTracker(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew)
Construct a ChangeTracker that will produce a delta between the two passed streams.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
advance(boolean fSame)
Update the tracker to indicate that the most recently scanned region was the same or different.Binary
getDelta()
Obtain the final delta result as a Binary value.
-
-
-
Constructor Detail
-
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 valueinNew
- the BuferInput for the new value- Throws:
IOException
- if some use of the underlying streams throws an exception
-
-
Method Detail
-
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
-
-