Package io.vertx.ext.mongo
Class BulkWriteOptions
- java.lang.Object
-
- io.vertx.ext.mongo.BulkWriteOptions
-
public class BulkWriteOptions extends Object
Options for configuring bulk write operations.- Author:
- sschmitt
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_ORDERED
The default value of ordered = truestatic String
ORDERED
Field name for the ordered value in json representationstatic String
WRITE_OPTION
Field name for the writeOption value in json representation
-
Constructor Summary
Constructors Constructor Description BulkWriteOptions()
Default constructorBulkWriteOptions(boolean ordered)
Constructor specifying orderedBulkWriteOptions(JsonObject json)
Constructor from JSONBulkWriteOptions(BulkWriteOptions other)
Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
WriteOption
getWriteOption()
Get the write optionint
hashCode()
boolean
isOrdered()
Get whether the operations will be executed in the given orderBulkWriteOptions
setOrdered(boolean ordered)
Set the ordered optionBulkWriteOptions
setWriteOption(WriteOption writeOption)
Set the write optionJsonObject
toJson()
String
toString()
-
-
-
Field Detail
-
ORDERED
public static final String ORDERED
Field name for the ordered value in json representation- See Also:
- Constant Field Values
-
WRITE_OPTION
public static final String WRITE_OPTION
Field name for the writeOption value in json representation- See Also:
- Constant Field Values
-
DEFAULT_ORDERED
public static final boolean DEFAULT_ORDERED
The default value of ordered = true- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BulkWriteOptions
public BulkWriteOptions()
Default constructor
-
BulkWriteOptions
public BulkWriteOptions(boolean ordered)
Constructor specifying ordered- Parameters:
ordered
- the value of ordered
-
BulkWriteOptions
public BulkWriteOptions(BulkWriteOptions other)
Copy constructor- Parameters:
other
- the one to copy
-
BulkWriteOptions
public BulkWriteOptions(JsonObject json)
Constructor from JSON- Parameters:
json
- the json
-
-
Method Detail
-
toJson
public JsonObject toJson()
-
getWriteOption
public WriteOption getWriteOption()
Get the write option- Returns:
- the write option
-
setWriteOption
public BulkWriteOptions setWriteOption(WriteOption writeOption)
Set the write option- Parameters:
writeOption
- the write option- Returns:
- fluent reference to this
-
isOrdered
public boolean isOrdered()
Get whether the operations will be executed in the given order- Returns:
- if ordered is enabled
-
setOrdered
public BulkWriteOptions setOrdered(boolean ordered)
Set the ordered option- Parameters:
ordered
- the ordered option- Returns:
- fluent reference to this
-
-