Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.