Attributes
Members list
Value members
Inherited methods
Creates an update that adds each of the given values to the array value of the field with the given name, unless the value is already present, in which case it does nothing
Creates an update that adds each of the given values to the array value of the field with the given name, unless the value is already present, in which case it does nothing
Value parameters
- fieldName
-
the non-null field name
- values
-
the values
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that adds the given value to the array value of the field with the given name, unless the value is already present, in which case it does nothing
Creates an update that adds the given value to the array value of the field with the given name, unless the value is already present, in which case it does nothing
Value parameters
- fieldName
-
the non-null field name
- value
-
the value, which may be null
Attributes
- Returns
-
the update
- Inherited from:
- Update
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- AsJavaConverters
Attributes
- Inherited from:
- Update
Creates an update that performs a bitwise and between the given integer value and the integral value of the field with the given name.
Creates an update that performs a bitwise and between the given integer value and the integral value of the field with the given name.
Value parameters
- fieldName
-
the field name
- value
-
the value
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that performs a bitwise or between the given integer value and the integral value of the field with the given name.
Creates an update that performs a bitwise or between the given integer value and the integral value of the field with the given name.
Value parameters
- fieldName
-
the field name
- value
-
the value
Attributes
- Returns
-
the update
- Inherited from:
- Update
Attributes
- Inherited from:
- Update
Creates an update that performs a bitwise xor between the given integer value and the integral value of the field with the given name.
Creates an update that performs a bitwise xor between the given integer value and the integral value of the field with the given name.
Value parameters
- fieldName
-
the field name
- value
-
the value
Attributes
- Returns
-
the update
- Inherited from:
- Update
Merges 2 sequences of update operations together.
Merges 2 sequences of update operations together.
Value parameters
- anotherUpdate
-
the update to be merged with
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that sets the value of the field to the current date as a BSON date.
Creates an update that sets the value of the field to the current date as a BSON date.
Value parameters
- fieldName
-
the non-null field name
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that sets the value of the field to the current date as a BSON timestamp.
Creates an update that sets the value of the field to the current date as a BSON timestamp.
Value parameters
- fieldName
-
the non-null field name
Attributes
- Returns
-
the update
- Inherited from:
- Update
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
Calculates a hash code value for the object.
Calculates a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
. However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals
method.
Attributes
Creates an update that increments the value of the field with the given name by the given value.
Creates an update that increments the value of the field with the given name by the given value.
Value parameters
- fieldName
-
the non-null field name
- number
-
the value
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that sets the value of the field to the given value if the given value is greater than the current value of the field.
Creates an update that sets the value of the field to the given value if the given value is greater than the current value of the field.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that sets the value of the field to the given value if the given value is less than the current value of the field.
Creates an update that sets the value of the field to the given value if the given value is less than the current value of the field.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that multiplies the value of the field with the given name by the given number.
Creates an update that multiplies the value of the field with the given name by the given number.
Value parameters
- fieldName
-
the non-null field name
- number
-
the non-null number
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that pops the first element of an array that is the value of the field with the given name.
Creates an update that pops the first element of an array that is the value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that pops the last element of an array that is the value of the field with the given name.
Creates an update that pops the last element of an array that is the value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that removes all instances of the given value from the array value of the field with the given name.
Creates an update that removes all instances of the given value from the array value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value, which may be null
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that removes all instances of the given values from the array value of the field with the given name.
Creates an update that removes all instances of the given values from the array value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
- values
-
the values
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that removes from an array all elements that match the given filter.
Creates an update that removes from an array all elements that match the given filter.
Value parameters
- filter
-
the query filter
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that adds the given value to the array value of the field with the given name.
Creates an update that adds the given value to the array value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value, which may be null
Attributes
- Returns
-
the update
- Inherited from:
- Update
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.
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.
Value parameters
- fieldName
-
the non-null field name
- options
-
the non-null push options
- values
-
the values
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that adds each of the given values to the array value of the field with the given name.
Creates an update that adds each of the given values to the array value of the field with the given name.
Value parameters
- fieldName
-
the non-null field name
- values
-
the values
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that renames a field.
Creates an update that renames a field.
Value parameters
- fieldName
-
the non-null field name
- newFieldName
-
the non-null new field name
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that sets the value of the field with the given name to the given value.
Creates an update that sets the value of the field with the given name to the given value.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value, which may be null
Attributes
- Returns
-
the update
- Inherited from:
- Update
Creates an update that sets the value of the field with the given name to the given value, but only if the update is an upsert that results in an insert of a document.
Creates an update that sets the value of the field with the given name to the given value, but only if the update is an upsert that results in an insert of a document.
Value parameters
- fieldName
-
the non-null field name
- value
-
the value, which may be null
Attributes
- Returns
-
the update ee UpdateOptions#upsert(boolean)
- Inherited from:
- Update
Creates an update that sets the values for the document, but only if the update is an upsert that results in an insert of a document.
Creates an update that sets the values for the document, but only if the update is an upsert that results in an insert of a document.
Value parameters
- value
-
the value
Attributes
- Returns
-
the update .0
- See also
-
UpdateOptions#upsert(boolean)
- Inherited from:
- Update