Skip navigation links

Oracle® Coherence Java API Reference
v3.5.1

E15583-01


com.tangosol.util
Class NullImplementation.NullDeltaCompressor

java.lang.Object
  extended by com.tangosol.util.NullImplementation.NullDeltaCompressor

All Implemented Interfaces:
DeltaCompressor
Enclosing class:
NullImplementation

public static class NullImplementation.NullDeltaCompressor
extends java.lang.Object
implements DeltaCompressor

An implementation of a DeltaCompressor that does nothing and always returns the new stream.


Field Summary
static DeltaCompressor INSTANCE
          Singleton instance.

 

Constructor Summary
NullImplementation.NullDeltaCompressor()
           

 

Method Summary
 ReadBuffer applyDelta(ReadBuffer bufOld, ReadBuffer bufDelta)
          Apply a delta to an old value in order to create a new value.
 ReadBuffer extractDelta(ReadBuffer bufOld, ReadBuffer bufNew)
          Compare an old value to a new value and generate a delta that represents the changes that must be made to the old value in order to transform it into the new value.

 

Field Detail

INSTANCE

public static final DeltaCompressor INSTANCE
Singleton instance.

Constructor Detail

NullImplementation.NullDeltaCompressor

public NullImplementation.NullDeltaCompressor()

Method Detail

extractDelta

public ReadBuffer extractDelta(ReadBuffer bufOld,
                               ReadBuffer bufNew)
Compare an old value to a new value and generate a delta that represents the changes that must be made to the old value in order to transform it into the new value.
Specified by:
extractDelta in interface DeltaCompressor
Parameters:
bufOld - the old value
bufNew - the new value
Returns:
the changes that must be made to the old value in order to transform it into the new value, or null to indicate no change

applyDelta

public ReadBuffer applyDelta(ReadBuffer bufOld,
                             ReadBuffer bufDelta)
Apply a delta to an old value in order to create a new value.
Specified by:
applyDelta in interface DeltaCompressor
Parameters:
bufOld - the old value
bufDelta - the delta information returned from DeltaCompressor.extractDelta(com.tangosol.io.ReadBuffer, com.tangosol.io.ReadBuffer) to apply to the old value
Returns:
the new value

Skip navigation links

Oracle® Coherence Java API Reference
v3.5.1

E15583-01


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