public enum FullDocument extends java.lang.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 and Description |
---|
DEFAULT
Default
|
UPDATE_LOOKUP
Lookup
|
Modifier and Type | Method and Description |
---|---|
static FullDocument |
fromString(java.lang.String changeStreamFullDocument)
Returns the ChangeStreamFullDocument from the string value.
|
java.lang.String |
getValue() |
static FullDocument |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()
public static FullDocument fromString(java.lang.String changeStreamFullDocument)
changeStreamFullDocument
- the string value.