public enum MutationType extends Enum<MutationType>
Transaction.mutate(MutationType, byte[], byte[]).| Enum Constant and Description |
|---|
ADD
Performs an addition of little-endian integers.
|
AND
Deprecated.
|
BIT_AND
Performs a bitwise
and operation. |
BIT_OR
Performs a bitwise
or operation. |
BIT_XOR
Performs a bitwise
xor operation. |
MAX
Performs a little-endian comparison of byte strings.
|
MIN
Performs a little-endian comparison of byte strings.
|
OR
Deprecated.
|
XOR
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
code()
Gets the FoundationDB native-level constant code for a
MutationType. |
static MutationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MutationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MutationType ADD
param, it is first extended to the length of param with zero bytes. If param is shorter than the existing value in the database, the existing value is truncated to match the length of param. The integers to be added must be stored in a little-endian representation. They can be signed in two's complement representation or unsigned. You can add to an integer at a known offset in the value by prepending the appropriate number of zero bytes to param and padding with zero bytes to match the length of the value. However, this offset technique requires that you know the addition will not cause the integer field within the value to overflow.@Deprecated public static final MutationType AND
public static final MutationType BIT_AND
and operation. If the existing value in the database is not present or shorter than param, it is first extended to the length of param with zero bytes. If param is shorter than the existing value in the database, the existing value is truncated to match the length of param.@Deprecated public static final MutationType OR
public static final MutationType BIT_OR
or operation. If the existing value in the database is not present or shorter than param, it is first extended to the length of param with zero bytes. If param is shorter than the existing value in the database, the existing value is truncated to match the length of param.@Deprecated public static final MutationType XOR
public static final MutationType BIT_XOR
xor operation. If the existing value in the database is not present or shorter than param, it is first extended to the length of param with zero bytes. If param is shorter than the existing value in the database, the existing value is truncated to match the length of param.public static final MutationType MAX
param, it is first extended to the length of param with zero bytes. If param is shorter than the existing value in the database, the existing value is truncated to match the length of param. The larger of the two values is then stored in the database.public static final MutationType MIN
param, it is first extended to the length of param with zero bytes. If param is shorter than the existing value in the database, the existing value is truncated to match the length of param. The smaller of the two values is then stored in the database.public static MutationType[] values()
for (MutationType c : MutationType.values()) System.out.println(c);
public static MutationType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int code()
MutationType.MutationType constant.