public final class InsertManyOptions
extends java.lang.Object
Constructor and Description |
---|
InsertManyOptions() |
Modifier and Type | Method and Description |
---|---|
InsertManyOptions |
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()
Gets whether the documents should be inserted in the order provided, stopping on the first failed insertion.
|
InsertManyOptions |
ordered(boolean ordered)
Sets whether the server should insert the documents in the order provided.
|
public boolean isOrdered()
public InsertManyOptions ordered(boolean ordered)
ordered
- true if documents should be inserted in orderpublic java.lang.Boolean getBypassDocumentValidation()
public InsertManyOptions bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
bypassDocumentValidation
- If true, allows the write to opt-out of document level validation.