|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.ExternalizableHelper.FormatAwareCompressor
public static class ExternalizableHelper.FormatAwareCompressor
A DeltaCompressor wrapper implementation that removes/replaces the serialization format byte (FMT_EXT) before/after delegating to the underlying compressor.
Field Summary | |
---|---|
protected com.tangosol.io.DeltaCompressor |
m_compressor The wrapped DeltaCompressor. |
Constructor Summary | |
---|---|
ExternalizableHelper.FormatAwareCompressor(com.tangosol.io.DeltaCompressor compressor) Construct a FormatAwareCompressor. |
Method Summary | |
---|---|
com.tangosol.io.ReadBuffer |
applyDelta(com.tangosol.io.ReadBuffer bufOld, com.tangosol.io.ReadBuffer bufDelta) Apply a delta to an old value in order to create a new value. |
com.tangosol.io.ReadBuffer |
extractDelta(com.tangosol.io.ReadBuffer bufOld, com.tangosol.io.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. |
java.lang.String |
toString() Returns a string representation of the object. |
Field Detail |
---|
protected com.tangosol.io.DeltaCompressor m_compressor
Constructor Detail |
---|
public ExternalizableHelper.FormatAwareCompressor(com.tangosol.io.DeltaCompressor compressor)
compressor
- the underlying compressorMethod Detail |
---|
public com.tangosol.io.ReadBuffer extractDelta(com.tangosol.io.ReadBuffer bufOld, com.tangosol.io.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 com.tangosol.io.DeltaCompressor
bufOld
- the old valuebufNew
- the new value; must not be nullpublic com.tangosol.io.ReadBuffer applyDelta(com.tangosol.io.ReadBuffer bufOld, com.tangosol.io.ReadBuffer bufDelta)
applyDelta
in interface com.tangosol.io.DeltaCompressor
bufOld
- the old valuebufDelta
- the delta information returned from extractDelta(com.tangosol.io.ReadBuffer, com.tangosol.io.ReadBuffer)
to apply to the old valuepublic java.lang.String toString()
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |