Serializable
, Comparable<FullDocument>
public enum FullDocument extends Enum<FullDocument>
Determines what to return for update operations when using a Change Stream. Defaults to DEFAULT
.
When set to UPDATE_LOOKUP
, the change stream for partial updates will include both a delta describing the
changes to the document as well as a copy of the entire document that was changed from some time after the change occurred.
Enum Constant | Description |
---|---|
DEFAULT |
Default
|
UPDATE_LOOKUP |
Lookup
|
Modifier and Type | Method | Description |
---|---|---|
static FullDocument |
fromString(String changeStreamFullDocument) |
Returns the ChangeStreamFullDocument from the string value.
|
String |
getValue() |
|
static FullDocument |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static FullDocument[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FullDocument DEFAULT
Returns the servers default value in the fullDocument
field.
public static final FullDocument UPDATE_LOOKUP
The change stream for partial updates will include both a delta describing the changes to the document as well as a copy of the entire document that was changed from some time after the change occurred.
public static FullDocument[] values()
for (FullDocument c : FullDocument.values()) System.out.println(c);
public static FullDocument 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 String getValue()
public static FullDocument fromString(String changeStreamFullDocument)
changeStreamFullDocument
- the string value.