Docs HomeMongoDB Manual

Bitwise Query Operators逐位查询运算符

Bitwise operators return data based on bit position conditions.逐位运算符根据位位置条件返回数据。

Note

For details on a specific operator, including syntax and examples, click on the link to the operator's reference page.有关特定运算符的详细信息,包括语法和示例,请单击该运算符参考页的链接。

Name名称Description描述
$bitsAllClearMatches numeric or binary values in which a set of bit positions all have a value of 0.匹配一组位位置的值全部0的数值或二进制值。
$bitsAllSetMatches numeric or binary values in which a set of bit positions all have a value of 1.匹配一组位位置的值全部1的数值或二进制值。
$bitsAnyClearMatches numeric or binary values in which any bit from a set of bit positions has a value of 0.匹配一组位位置中的任一位具有值0的数字或二进制值。
$bitsAnySetMatches numeric or binary values in which any bit from a set of bit positions has a value of 1.匹配一组位位置中的任一位具有值1的数字或二进制值。