Package com.apple.foundationdb.clientlog
Class FDBClientLogEvents.Mutation
java.lang.Object
com.apple.foundationdb.clientlog.FDBClientLogEvents.Mutation
- Enclosing class:
FDBClientLogEvents
A single mutation in a
FDBClientLogEvents.CommitRequest.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SET_VALUE
public static final int SET_VALUE- See Also:
-
CLEAR_RANGE
public static final int CLEAR_RANGE- See Also:
-
MIN_V2
public static final int MIN_V2- See Also:
-
AND_V2
public static final int AND_V2- See Also:
-
-
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 flagskey- 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 suffixchecksum- the checksum, ornullif there is noneaccumulativeChecksumIndex- the accumulative checksum index, ornullif there is none
-
-
Method Details
-
getType
public int getType() -
getKey
@Nonnull public byte[] getKey() -
getParam
@Nonnull public byte[] getParam() -
getChecksum
Get the checksum recorded with this mutation, if any.- Returns:
- the checksum or
nullif none was recorded (including for protocol versions before 7.4)
-
getAccumulativeChecksumIndex
Get the accumulative checksum index recorded with this mutation, if any.- Returns:
- the index or
nullif none was recorded
-
toString
-