public class BulkWriteOptions extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ORDERED
The default value of ordered = true
|
static String |
ORDERED
Field name for the ordered value in json representation
|
static String |
WRITE_OPTION
Field name for the writeOption value in json representation
|
Constructor and Description |
---|
BulkWriteOptions()
Default constructor
|
BulkWriteOptions(boolean ordered)
Constructor specifying ordered
|
BulkWriteOptions(BulkWriteOptions other)
Copy constructor
|
BulkWriteOptions(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
WriteOption |
getWriteOption()
Get the write option
|
boolean |
isOrdered()
Get whether the operations will be executed in the given order
|
BulkWriteOptions |
setOrdered(boolean ordered)
Set the ordered option
|
BulkWriteOptions |
setWriteOption(WriteOption writeOption)
Set the write option
|
JsonObject |
toJson() |
public static final String ORDERED
public static final String WRITE_OPTION
public static final boolean DEFAULT_ORDERED
public BulkWriteOptions()
public BulkWriteOptions(boolean ordered)
ordered
- the value of orderedpublic BulkWriteOptions(BulkWriteOptions other)
other
- the one to copypublic BulkWriteOptions(JsonObject json)
json
- the jsonpublic JsonObject toJson()
public WriteOption getWriteOption()
public BulkWriteOptions setWriteOption(WriteOption writeOption)
writeOption
- the write optionpublic boolean isOrdered()
public BulkWriteOptions setOrdered(boolean ordered)
ordered
- the ordered optionCopyright © 2023 Eclipse. All rights reserved.