MongoDB request DSL • opensavvy.ktmongo.dsl.query • FilterQuery • bitsAllClear
bitsAllClear¶
open infix fun Field<T, *>.bitsAllClear(mask: ERROR CLASS: Symbol not found for UInt)
Matches documents where all bit positions present in mask are clear (i.e., 0) in the current field.
This operator will not match numerical values that cannot be represented as a signed 64-bit integer (e.g. Decimal128) nor ones that have a fractional component.
Example¶
class User(
val name: String,
val age: Int?,
)
collection.find {
User::age bitsAllClear UInt.MAX_VALUE
}
Performance¶
Queries cannot use indexes for this operator, but they can use indexes for other operators.
External resources¶
open infix fun KProperty1<T, *>.bitsAllClear(mask: ERROR CLASS: Symbol not found for UInt)
Matches documents where all bit positions present in mask are clear (i.e., 0) in the current field.
This operator will not match numerical values that cannot be represented as a signed 64-bit integer (e.g. Decimal128) nor ones that have a fractional component.
Example¶
class User(
val name: String,
val age: Int?,
)
collection.find {
User::age bitsAllClear UInt.MAX_VALUE
}
Performance¶
Queries cannot use indexes for this operator, but they can use indexes for other operators.
External resources¶
open infix fun Field<T, *>.bitsAllClear(mask: ByteArray)
Matches documents where all bit positions present in mask are clear (i.e., 0) in the current field.
This operator will not match numerical values that cannot be represented as a signed 64-bit integer (e.g. Decimal128) nor ones that have a fractional component.
Performance¶
Queries cannot use indexes for this operator, but they can use indexes for other operators.
External resources¶
open infix fun KProperty1<T, *>.bitsAllClear(mask: ByteArray)
Matches documents where all bit positions present in mask are clear (i.e., 0) in the current field.
This operator will not match numerical values that cannot be represented as a signed 64-bit integer (e.g. Decimal128) nor ones that have a fractional component.
Performance¶
Queries cannot use indexes for this operator, but they can use indexes for other operators.