Class FDBClientLogEvents.Mutation

java.lang.Object
com.apple.foundationdb.clientlog.FDBClientLogEvents.Mutation
Enclosing class:
FDBClientLogEvents

public static class FDBClientLogEvents.Mutation extends Object
A single mutation in a FDBClientLogEvents.CommitRequest.
  • Field Details

  • Constructor Details

    • Mutation

      public Mutation(int type, @Nonnull byte[] key, @Nonnull byte[] param, @Nullable Integer checksum, @Nullable Integer accumulativeChecksumIndex)
      Create a mutation object representing an FDB mutation. Note that the checksum information is nullable, as it is optional as it was only added with protocol version 7.4. After that protocol version, it is still optional and off by default.
      Parameters:
      type - the type of the mutation, without any flags
      key - the key (or the beginning of the range for a clear)
      param - the value or operand (or the end of the range for a clear), without any checksum suffix
      checksum - the checksum, or null if there is none
      accumulativeChecksumIndex - the accumulative checksum index, or null if there is none
  • Method Details

    • getType

      public int getType()
    • getKey

      @Nonnull public byte[] getKey()
    • getParam

      @Nonnull public byte[] getParam()
    • getChecksum

      @Nullable public Integer getChecksum()
      Get the checksum recorded with this mutation, if any.
      Returns:
      the checksum or null if none was recorded (including for protocol versions before 7.4)
    • getAccumulativeChecksumIndex

      @Nullable public Integer getAccumulativeChecksumIndex()
      Get the accumulative checksum index recorded with this mutation, if any.
      Returns:
      the index or null if none was recorded
    • toString

      public String toString()
      Overrides:
      toString in class Object