| 
 | 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.Base
       com.tangosol.util.BitHelper
com.tangosol.util.BitHelper
           com.tangosol.util.ExternalizableHelper
com.tangosol.util.ExternalizableHelper
               com.tangosol.io.DecoratedBinaryDeltaCompressor
com.tangosol.io.DecoratedBinaryDeltaCompressor
public class DecoratedBinaryDeltaCompressor
A DeltaCompressor implementation that works with decorated binary values.
The delta format is composed of a leading byte that indicates the format; the format indicator byte is one of the DECO_* field values. If the delta value does not begin with one of the leading DECO_* indicators, then the entire delta is the delta for the "value" portion of the decorated result. The grammar follows:
DecoratedBinaryDelta: DECO_DELETE_ALL OptionalValueDelta DecorationDeltaList DECO_TERM OptionalValueDelta DECO_NO_CHANGES-opt ValueDelta null OptionalValueDelta: VALUE_NO_CHANGES VALUE_CHANGES-opt ValueDelta ValueDelta: Binary (as defined by the underlying DeltaCompressor) DecorationDeltaList: DecorationDelta DecorationDeltaList DecorationDelta DecorationDelta: DECO_INSERT DecorationId Binary DECO_UPDATE DecorationId BinaryDelta DECO_DELETE DecorationId BinaryDelta: Binary (as returned by the BinaryDeltaCompressor) Binary: Length <bytes> DecorationId: Length: <packed-integer>
| Constructor Summary | |
|---|---|
| DecoratedBinaryDeltaCompressor(DeltaCompressor compressorValue)Construct a DecoratedBinaryDeltaCompressor. | |
| 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. | 
|  java.lang.String | toString() | 
| 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 | 
| Constructor Detail | 
|---|
public DecoratedBinaryDeltaCompressor(DeltaCompressor compressorValue)
compressorValue - the compressor responsible for performing delta compression on the underlying Binary value (i.e. the DECO_VALUE decoration)| 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 DeltaCompressorbufOld - the old valuebufNew - the new value; must not be null
public ReadBuffer applyDelta(ReadBuffer bufOld,
                             ReadBuffer bufDelta)
applyDelta in interface DeltaCompressorbufOld - the old valuebufDelta - the delta information returned from DeltaCompressor.extractDelta(com.tangosol.io.ReadBuffer, com.tangosol.io.ReadBuffer) to apply to the old valuepublic java.lang.String toString()
| 
 | 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 | |||||||