Package com.yahoo.document.serialization
Class DocumentUpdateFlags
- java.lang.Object
-
- com.yahoo.document.serialization.DocumentUpdateFlags
-
public class DocumentUpdateFlags extends Object
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
Constructors Constructor Description DocumentUpdateFlags()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentUpdateFlags
extractFlags(int combined)
static int
extractValue(int combined)
boolean
getCreateIfNonExistent()
int
injectInto(int value)
void
setCreateIfNonExistent(boolean value)
-
-
-
Method Detail
-
getCreateIfNonExistent
public boolean getCreateIfNonExistent()
-
setCreateIfNonExistent
public void setCreateIfNonExistent(boolean value)
-
injectInto
public int injectInto(int value)
-
extractFlags
public static DocumentUpdateFlags extractFlags(int combined)
-
extractValue
public static int extractValue(int combined)
-
-