/
query-bitwise.txt
47 lines (30 loc) · 1.07 KB
/
query-bitwise.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
=======================
Bitwise Query Operators
=======================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: singlecol
.. include:: /includes/extracts/operators-toc-explanation.rst
.. list-table::
:widths: 30,70
:header-rows: 1
* - Name
- Description
* - :query:`$bitsAllClear`
- Matches numeric or binary values in which a set of bit positions *all* have a value of ``0``.
* - :query:`$bitsAllSet`
- Matches numeric or binary values in which a set of bit positions *all* have a value of ``1``.
* - :query:`$bitsAnyClear`
- Matches numeric or binary values in which *any* bit from a set of bit positions has a value of ``0``.
* - :query:`$bitsAnySet`
- Matches numeric or binary values in which *any* bit from a set of bit positions has a value of ``1``.
.. toctree::
:titlesonly:
:hidden:
/reference/operator/query/bitsAllClear
/reference/operator/query/bitsAllSet
/reference/operator/query/bitsAnyClear
/reference/operator/query/bitsAnySet