Skip to content

Commit b292900

Browse files
authored
DOCSP-29684 Add Bitwise Operators to Aggregation Page (#3218)
* DOCSP-29684 Add Bitwise Operators to Aggregation Page * spacing
1 parent de79ba2 commit b292900

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

source/includes/bitwise-operators.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.. list-table::
2+
:header-rows: 1
3+
:widths: 20 80
4+
5+
* - Name
6+
- Description
7+
8+
* - :expression:`$bitAnd`
9+
- Returns the result of a bitwise ``and`` operation on an array of
10+
``int`` or ``long`` values.
11+
12+
.. versionadded:: 6.3
13+
14+
* - :expression:`$bitNot`
15+
- Returns the result of a bitwise ``not`` operation on a single argument
16+
or an array that contains a single ``int`` or ``long`` value.
17+
18+
.. versionadded:: 6.3
19+
20+
* - :expression:`$bitOr`
21+
- Returns the result of a bitwise ``or`` operation on an array of
22+
``int`` or ``long`` values.
23+
24+
.. versionadded:: 6.3
25+
26+
* - :expression:`$bitXor`
27+
- Returns the result of a bitwise ``xor`` (exclusive or) operation on an
28+
array of ``int`` and ``long`` values.
29+
30+
.. versionadded:: 6.3

source/reference/operator/aggregation.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ Array Expression Operators
4141

4242
.. include:: /includes/extracts/agg-operators-array.rst
4343

44+
Bitwise Operators
45+
~~~~~~~~~~~~~~~~~
46+
47+
.. include:: /includes/bitwise-operators.rst
48+
4449
Boolean Expression Operators
4550
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4651

source/release-notes/6.3.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,37 @@ Issues fixed:
4242

4343
- :ref:`6.3.1-changelog`
4444

45+
Aggregation
46+
-----------
47+
48+
New Aggregation Operators
49+
~~~~~~~~~~~~~~~~~~~~~~~~~
50+
51+
MongoDB 6.3 introduces the following aggregation operators:
52+
53+
.. list-table::
54+
:header-rows: 1
55+
:widths: 20 80
56+
57+
* - Operator
58+
- Description
59+
60+
* - :expression:`$bitAnd`
61+
- Returns the result of a bitwise ``and`` operation on an array of
62+
``int`` or ``long`` values.
63+
64+
* - :expression:`$bitNot`
65+
- Returns the result of a bitwise ``not`` operation on a single argument
66+
or an array that contains a single ``int`` or ``long`` value.
67+
68+
* - :expression:`$bitOr`
69+
- Returns the result of a bitwise ``or`` operation on an array of
70+
``int`` or ``long`` values.
71+
72+
* - :expression:`$bitXor`
73+
- Returns the result of a bitwise ``xor`` (exclusive or) operation on an
74+
array of ``int`` and ``long`` values.
75+
4576
General Changes
4677
---------------
4778

0 commit comments

Comments
 (0)