Show / Hide Table of Contents

Interface IDeltaCompressor

The IDeltaCompressor interface provides the capability of comparing two in-memory buffers containing an old and a new value, and producing a result (called a "delta") that can be applied to the old value to create the new value.

Namespace: Tangosol.IO
Assembly: Coherence.dll
Syntax
public interface IDeltaCompressor

Methods

ApplyDelta(Binary, Binary)

Apply a delta to an old value in order to create a new value.

Declaration
Binary ApplyDelta(Binary binOld, Binary binDelta)
Parameters
Type Name Description
Binary binOld

The old value.

Binary binDelta

The delta information returned from ExtractDelta(Binary, Binary) to apply to the old value.

Returns
Type Description
Binary

The new value.

ExtractDelta(Binary, Binary)

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. The generated delta must be a Binary of non-zero length.

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.

Declaration
Binary ExtractDelta(Binary binOld, Binary binNew)
Parameters
Type Name Description
Binary binOld

The old value.

Binary binNew

The new value; must not be null.

Returns
Type Description
Binary

The changes that must be made to the old value in order to transform it into the new value, or null to indicate no change.

In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.