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 |
---|---|
boolean |
equals(Object o) |
WriteOption |
getWriteOption()
Get the write option
|
int |
hashCode() |
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() |
String |
toString() |
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 © 2022 Eclipse. All rights reserved.