|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.io.DecorationOnlyDeltaCompressor
public class DecorationOnlyDeltaCompressor
DecorationOnlyDeltaCompressor is a DeltaCompressor which optimizes for "decoration-only" updates. A decoration-only update is a one where the intrinsic value does not change, but the "decorations" may. An example of such an update could be generated by the ReadWriteBackingMap after successful write-behind operations to indicate that the store has been completed. Updates to the intrinsic value are not optimized/compressed at all.
While this compressor does not produce any compression/optimization in the general case, it allows for optimizing decoration changes while avoiding the need to "read" the old value when applying an actual intrinsic change. This could be used to defer/avoid unnecessary access to a potentially expensive backup map.
DecorationOnlyBinaryDelta: DecorationDelta Value // the new value in "whole" form (possibly decorated) null DecorationDelta: BIN_DECO_ONLY (decorated) // apply the decorations to the old value BIN_DECO_ONLY (undecorated) // undecorate the old value
Field Summary | |
---|---|
protected static Binary |
BIN_DECO_ONLY A place-holder Binary value used by the compressor to indicate a decoration-only update. |
Constructor Summary | |
---|---|
DecorationOnlyDeltaCompressor() |
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. |
Methods inherited from class com.tangosol.util.BitHelper |
---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString, toBytes, toBytes, toBytes, toBytes, toInt, toInt, toLong, toLong |
Field Detail |
---|
protected static Binary BIN_DECO_ONLY
Constructor Detail |
---|
public DecorationOnlyDeltaCompressor()
Method Detail |
---|
public 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 DeltaCompressor
bufOld
- the old valuebufNew
- the new value; must not be nullpublic ReadBuffer applyDelta(ReadBuffer bufOld, ReadBuffer bufDelta)
applyDelta
in interface DeltaCompressor
bufOld
- the old valuebufDelta
- the delta information returned from DeltaCompressor.extractDelta(com.tangosol.io.ReadBuffer, com.tangosol.io.ReadBuffer)
to apply to the old value
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |