Package com.mongodb.client.model
Class PushOptions
java.lang.Object
com.mongodb.client.model.PushOptions
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
The options to apply to a $push update operator.
- Since:
- 3.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Deprecated.Gets the position at which to add the pushed values in the array.getSlice()
Deprecated.Gets the slice value, which is the limit on the number of array elements allowed.getSort()
Deprecated.Gets the sort direction for sorting array elements that are not documents.Deprecated.Gets the sort direction for sorting array elements that are documents.int
hashCode()
Deprecated.Deprecated.Sets the position at which to add the pushed values in the array.Deprecated.Sets the limit on the number of array elements allowed.Deprecated.Sets the sort direction for sorting array elements that are not documents.sortDocument
(Bson sortDocument) Deprecated.Sets the sort direction for sorting array elements that are documents.toString()
Deprecated.
-
Constructor Details
-
PushOptions
public PushOptions()Deprecated.
-
-
Method Details
-
getPosition
Deprecated.Gets the position at which to add the pushed values in the array.- Returns:
- the position, which may be null
-
position
Deprecated.Sets the position at which to add the pushed values in the array.- Parameters:
position
- the position- Returns:
- this
-
getSlice
Deprecated.Gets the slice value, which is the limit on the number of array elements allowed.- Returns:
- the slice value representing the limit on the number of array elements allowed
-
slice
Deprecated.Sets the limit on the number of array elements allowed.- Parameters:
slice
- the limit- Returns:
- this
-
getSort
Deprecated.Gets the sort direction for sorting array elements that are not documents.- Returns:
- the sort direction
-
sort
Deprecated.Sets the sort direction for sorting array elements that are not documents.- Parameters:
sort
- the sort direction- Returns:
- this
- Throws:
IllegalStateException
- if sortDocument property is already set
-
getSortDocument
Deprecated.Gets the sort direction for sorting array elements that are documents.- Returns:
- the sort document
-
sortDocument
Deprecated.Sets the sort direction for sorting array elements that are documents.- Parameters:
sortDocument
- the sort document- Returns:
- this
- Throws:
IllegalStateException
- if sort property is already set
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-