Package com.yahoo.document.serialization
Class DocumentUpdateFlags
java.lang.Object
com.yahoo.document.serialization.DocumentUpdateFlags
Class used to represent up to 4 flags used in a DocumentUpdate.
These flags are stored as the 4 most significant bits in a 32 bit integer.
Flags currently used:
0) create-if-non-existent.
- Author:
- geirst
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentUpdateFlags
extractFlags
(int combined) static int
extractValue
(int combined) boolean
int
injectInto
(int value) void
setCreateIfNonExistent
(boolean value)
-
Constructor Details
-
DocumentUpdateFlags
public DocumentUpdateFlags()
-
-
Method Details
-
getCreateIfNonExistent
public boolean getCreateIfNonExistent() -
setCreateIfNonExistent
public void setCreateIfNonExistent(boolean value) -
injectInto
public int injectInto(int value) -
extractFlags
-
extractValue
public static int extractValue(int combined)
-