Package | Description |
---|---|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
PushOptions |
PushOptions.position(Integer position)
Sets the position at which to add the pushed values in the array.
|
PushOptions |
PushOptions.slice(Integer slice)
Sets the limit on the number of array elements allowed.
|
PushOptions |
PushOptions.sort(Integer sort)
Sets the sort direction for sorting array elements that are not documents.
|
PushOptions |
PushOptions.sortDocument(Bson sortDocument)
Sets the sort direction for sorting array elements that are documents.
|
Modifier and Type | Method and Description |
---|---|
static <TItem> Bson |
Updates.pushEach(String fieldName,
List<TItem> values,
PushOptions options)
Creates an update that adds each of the given values to the array value of the field with the given name, applying the given
options for positioning the pushed values, and then slicing and/or sorting the array.
|
Copyright © 2016. All Rights Reserved.