public final class BulkWriteOptions extends Object
| Constructor and Description |
|---|
BulkWriteOptions() |
| Modifier and Type | Method and Description |
|---|---|
BulkWriteOptions |
bypassDocumentValidation(Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
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 Boolean getBypassDocumentValidation()
public BulkWriteOptions bypassDocumentValidation(Boolean bypassDocumentValidation)
bypassDocumentValidation - If true, allows the write to opt-out of document level validation.