@InterfaceStability.Committed @InterfaceAudience.Public public enum Mutation extends Enum<Mutation>
Enumeration of possible mutations inside a sub-document MutationCommand
.
Enum Constant and Description |
---|
ARRAY_ADD_UNIQUE |
ARRAY_INSERT |
ARRAY_PUSH_FIRST |
ARRAY_PUSH_LAST |
COUNTER |
DELETE |
DICT_ADD |
DICT_UPSERT |
REPLACE |
UPSERTDOC |
Modifier and Type | Method and Description |
---|---|
byte |
opCode() |
static Mutation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mutation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mutation UPSERTDOC
public static final Mutation COUNTER
public static final Mutation REPLACE
public static final Mutation DICT_ADD
public static final Mutation DICT_UPSERT
public static final Mutation ARRAY_PUSH_FIRST
public static final Mutation ARRAY_PUSH_LAST
public static final Mutation ARRAY_ADD_UNIQUE
public static final Mutation ARRAY_INSERT
public static final Mutation DELETE
public static Mutation[] values()
for (Mutation c : Mutation.values()) System.out.println(c);
public static Mutation 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 byte opCode()
Copyright © 2018 Couchbase, Inc.. All rights reserved.