Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.io.pof
Class PofDeltaCompressor.ChangeTracker

java.lang.Object
  extended by com.tangosol.io.pof.PofDeltaCompressor.ChangeTracker

Enclosing class:
PofDeltaCompressor

protected static class PofDeltaCompressor.ChangeTracker
extends java.lang.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
PofDeltaCompressor.ChangeTracker(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew)
          Construct a ChangeTracker that will produce a delta between the two passed streams.

 

Method Summary
 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

PofDeltaCompressor.ChangeTracker

public PofDeltaCompressor.ChangeTracker(ReadBuffer.BufferInput inOld,
                                        ReadBuffer.BufferInput inNew)
                                 throws java.io.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:
java.io.IOException - if some use of the underlying streams throws an exception

Method Detail

advance

public void advance(boolean fSame)
             throws java.io.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:
java.io.IOException - if some use of the underlying streams throws an exception

getDelta

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

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.