|
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.io.BinaryDeltaCompressor
com.tangosol.io.pof.PofDeltaCompressor
public class PofDeltaCompressor
A DeltaCompressor implementation that works with Portable Object Format (POF) values. Note that while the POF parsing is stateful, the PofDeltaCompressor itself is still stateless, deferring all state management to a per-invocation data structure.
Nested Class Summary | |
---|---|
protected static class |
PofDeltaCompressor.ChangeTracker When determining a delta between two POF buffers, the ChangeTracker keeps track of whether the current location within the two POF streams is part of a differing portion or part of an identical portion. |
Field Summary |
---|
Fields inherited from class com.tangosol.io.BinaryDeltaCompressor |
---|
DELTA_TRUNCATE, FMT_BINDIFF, FMT_EMPTY, FMT_REPLACE, MIN_BLOCK, NO_BINARY, OP_APPEND, OP_EXTRACT, OP_TERM |
Constructor Summary | |
---|---|
PofDeltaCompressor() Default constructor. |
Method Summary | |
---|---|
ReadBuffer |
createDelta(ReadBuffer bufOld, ReadBuffer bufNew) Actually create a delta in the binary delta format. |
protected void |
diffCollection(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare an array or collection. |
protected void |
diffMap(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare a Map of keys and values. |
protected void |
diffPackedInt(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare a packed integer value. |
protected void |
diffPackedInts(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker, int cInts) Within the two passed POF streams, parse and compare a series of packed integer values. |
protected void |
diffPackedLong(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare a packed long integer value. |
protected void |
diffPackedLongs(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker, int cInts) Within the two passed POF streams, parse and compare a series of packed long integer values. |
protected void |
diffSparseArray(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare a sparse array. |
protected void |
diffTimeZone(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare time zone information. |
protected void |
diffUniformCollection(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare an array or collection of uniform types. |
protected void |
diffUniformKeysMap(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare a Map of keys (of a uniform type) and values. |
protected void |
diffUniformMap(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare a Map of keys and values, both of uniform types. |
protected void |
diffUniformSparseArray(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare a sparse array of uniform types. |
protected void |
diffUniformValue(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker, int nType) Within the two passed POF streams, parse and compare a POF value of the specified type. |
protected void |
diffUserType(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare a user type value. |
protected void |
diffValue(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) Within the two passed POF streams, parse and compare a POF value. |
Methods inherited from class com.tangosol.io.BinaryDeltaCompressor |
---|
applyDelta, extractDelta |
Methods inherited from interface com.tangosol.io.DeltaCompressor |
---|
applyDelta, extractDelta |
Constructor Detail |
---|
public PofDeltaCompressor()
Method Detail |
---|
public ReadBuffer createDelta(ReadBuffer bufOld, ReadBuffer bufNew)
createDelta
in class BinaryDeltaCompressor
bufOld
- the old valuebufNew
- the new valueprotected void diffValue(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
protected void diffUniformValue(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker, int nType) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultnType
- the type to parsejava.io.IOException
protected void diffUserType(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
protected void diffCollection(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
protected void diffUniformCollection(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
protected void diffSparseArray(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
protected void diffUniformSparseArray(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
protected void diffMap(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
protected void diffUniformKeysMap(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
protected void diffUniformMap(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
protected void diffTimeZone(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
protected void diffPackedInts(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker, int cInts) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultcInts
- the number of packed integers to parse and comparejava.io.IOException
protected void diffPackedInt(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
protected void diffPackedLongs(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker, int cInts) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultcInts
- the number of packed long integers to parse and comparejava.io.IOException
protected void diffPackedLong(ReadBuffer.BufferInput inOld, ReadBuffer.BufferInput inNew, PofDeltaCompressor.ChangeTracker tracker) throws java.io.IOException
inOld
- the BufferInput to read frominNew
- the BufferInput to read fromtracker
- the ChangeTracker that computes the diff resultjava.io.IOException
|
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 |