Package io.vertx.mongo.client.model
Class BulkWriteOptions
- java.lang.Object
-
- io.vertx.mongo.client.model.BulkWriteOptions
-
public class BulkWriteOptions extends java.lang.ObjectThe options to apply to a bulk write.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description BulkWriteOptions()BulkWriteOptions(JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleanisBypassDocumentValidation()Gets the the bypass document level validation flagjava.lang.BooleanisOrdered()If true, then when a write fails, return without performing the remaining writes.BulkWriteOptionssetBypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)Sets the bypass document level validation flag.BulkWriteOptionssetOrdered(java.lang.Boolean ordered)If true, then when a write fails, return without performing the remaining writes.JsonObjecttoJson()
-
-
-
Constructor Detail
-
BulkWriteOptions
public BulkWriteOptions()
-
BulkWriteOptions
public BulkWriteOptions(JsonObject json)
-
-
Method Detail
-
toJson
public JsonObject toJson()
-
setOrdered
public BulkWriteOptions setOrdered(java.lang.Boolean ordered)
If true, then when a write fails, return without performing the remaining writes. If false, then when a write fails, continue with the remaining writes, if any. Defaults to true.- Parameters:
ordered- true if the writes should be ordered- Returns:
- this
-
isOrdered
public java.lang.Boolean isOrdered()
If true, then when a write fails, return without performing the remaining writes. If false, then when a write fails, continue with the remaining writes, if any. Defaults to true.- Returns:
- true if the writes are ordered
-
setBypassDocumentValidation
public BulkWriteOptions setBypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.- Parameters:
bypassDocumentValidation- If true, allows the write to opt-out of document level validation.- Returns:
- this
- Since:
- 3.2
- Since server release
- 3.2
-
isBypassDocumentValidation
public java.lang.Boolean isBypassDocumentValidation()
Gets the the bypass document level validation flag- Returns:
- the bypass document level validation flag
- Since:
- 3.2
- Since server release
- 3.2
-
-