public static class ExternalizableHelper.FormatAwareCompressor extends Object implements DeltaCompressor
| Modifier and Type | Field and Description |
|---|---|
protected DeltaCompressor |
m_compressor
The wrapped DeltaCompressor.
|
| Constructor and Description |
|---|
FormatAwareCompressor(DeltaCompressor compressor)
Construct a FormatAwareCompressor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
toString()
Returns a string representation of the object.
|
protected DeltaCompressor m_compressor
public FormatAwareCompressor(DeltaCompressor compressor)
compressor - the underlying compressorpublic ReadBuffer extractDelta(ReadBuffer bufOld, ReadBuffer bufNew)
If the old value is null, the generated delta must be a "replace", meaning that applying it to any value must produce the specified new value.
extractDelta in interface DeltaCompressorbufOld - the old valuebufNew - the new value; must not be nullpublic ReadBuffer applyDelta(ReadBuffer bufOld, ReadBuffer bufDelta)
applyDelta in interface DeltaCompressorbufOld - the old valuebufDelta - the delta information returned from
extractDelta(com.tangosol.io.ReadBuffer, com.tangosol.io.ReadBuffer) to apply to the old value