Package com.mongodb.client.model
Class PushOptions
- java.lang.Object
-
- com.mongodb.client.model.PushOptions
-
@Deprecated(since="2021-05-27") public class PushOptions extends java.lang.ObjectDeprecated.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:
Updates.pushEach(String, java.util.List, PushOptions)
-
-
Constructor Summary
Constructors Constructor Description PushOptions()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Deprecated.java.lang.IntegergetPosition()Deprecated.Gets the position at which to add the pushed values in the array.java.lang.IntegergetSlice()Deprecated.Gets the slice value, which is the limit on the number of array elements allowed.java.lang.IntegergetSort()Deprecated.Gets the sort direction for sorting array elements that are not documents.BsongetSortDocument()Deprecated.Gets the sort direction for sorting array elements that are documents.inthashCode()Deprecated.PushOptionsposition(java.lang.Integer position)Deprecated.Sets the position at which to add the pushed values in the array.PushOptionsslice(java.lang.Integer slice)Deprecated.Sets the limit on the number of array elements allowed.PushOptionssort(java.lang.Integer sort)Deprecated.Sets the sort direction for sorting array elements that are not documents.PushOptionssortDocument(Bson sortDocument)Deprecated.Sets the sort direction for sorting array elements that are documents.java.lang.StringtoString()Deprecated.
-
-
-
Method Detail
-
getPosition
@Nullable public java.lang.Integer getPosition()
Deprecated.Gets the position at which to add the pushed values in the array.- Returns:
- the position, which may be null
-
position
public PushOptions position(@Nullable java.lang.Integer position)
Deprecated.Sets the position at which to add the pushed values in the array.- Parameters:
position- the position- Returns:
- this
-
getSlice
@Nullable public java.lang.Integer 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
public PushOptions slice(@Nullable java.lang.Integer slice)
Deprecated.Sets the limit on the number of array elements allowed.- Parameters:
slice- the limit- Returns:
- this
-
getSort
@Nullable public java.lang.Integer getSort()
Deprecated.Gets the sort direction for sorting array elements that are not documents.- Returns:
- the sort direction
-
sort
public PushOptions sort(@Nullable java.lang.Integer sort)
Deprecated.Sets the sort direction for sorting array elements that are not documents.- Parameters:
sort- the sort direction- Returns:
- this
- Throws:
java.lang.IllegalStateException- if sortDocument property is already set
-
getSortDocument
@Nullable public Bson getSortDocument()
Deprecated.Gets the sort direction for sorting array elements that are documents.- Returns:
- the sort document
-
sortDocument
public PushOptions sortDocument(@Nullable Bson sortDocument)
Deprecated.Sets the sort direction for sorting array elements that are documents.- Parameters:
sortDocument- the sort document- Returns:
- this
- Throws:
java.lang.IllegalStateException- if sort property is already set
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-