public final class BulkWriteOptions
extends java.lang.Object
Constructor and Description |
---|
BulkWriteOptions() |
Modifier and Type | Method and Description |
---|---|
BulkWriteOptions |
bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
java.lang.Boolean |
getBypassDocumentValidation()
Gets the the bypass document level validation flag
|
boolean |
isOrdered()
If true, then when a write fails, return without performing the remaining
writes.
|
BulkWriteOptions |
ordered(boolean ordered)
If true, then when a write fails, return without performing the remaining
writes.
|
public boolean isOrdered()
public BulkWriteOptions ordered(boolean ordered)
ordered
- true if the writes should be orderedpublic java.lang.Boolean getBypassDocumentValidation()
public BulkWriteOptions bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
bypassDocumentValidation
- If true, allows the write to opt-out of document level validation.