Interface BinaryDelta


public interface BinaryDelta
Binary delta type.

DataType implementations that support binary deltas by returning a DeltaType implementation as the result of deltaType(BinaryDelta.class). Two values of such a data type can be diffed to create a binary delta. The binary delta can later be applied to the first value to calculate the second value.

Since:
5.7
Author:
DiffusionData Limited
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether the two values used to create this instance are different.
    int
     
  • Method Details

    • hasChanges

      boolean hasChanges()
      Returns whether the two values used to create this instance are different. It is equivalent to !DeltaType.noChange().equals(this) .
      Returns:
      true if this delta has an effect
    • length

      int length()
      Returns:
      the number of bytes required to serialize the delta