Skip to content

Commit 3f0b43c

Browse files
author
Chris Cho
authored
DOCSP-23045: add setWindowFields API change to release notes (#245)
* DOCSP-23045: add setWindowFields API change in release notes
1 parent e3f5b25 commit 3f0b43c

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

source/fundamentals/indexes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ Refer to the :manual:`Unique Indexes page </core/index-unique>` in the MongoDB s
397397

398398
.. driver-content-end
399399

400-
.. _java-clustered-idexes:
400+
.. _java-clustered-indexes:
401401

402402
Clustered Indexes
403403
~~~~~~~~~~~~~~~~~

source/upgrade.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ changes between the current and upgrade versions. For example, if you
5050
are upgrading the driver from v4.0 to v4.5, address all breaking changes from
5151
the version after v4.0 including any listed under v4.5.
5252

53+
.. _java-breaking-changes-v4.7:
54+
55+
Version 4.7 Breaking Changes
56+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57+
58+
- The ``setWindowFields`` builder API is no longer beta. The new builder
59+
breaks binary and source compatibility. See the
60+
`Aggregates API documentation https://mongodb.github.io/mongo-java-driver/4.7/apidocs/mongodb-driver-core/com/mongodb/client/model/Aggregates.html>`__
61+
for information the new ``setWindowFields()`` method signatures.
62+
63+
If your application uses this builder in a version prior to v4.7, update
64+
your source code to use the new method signature and rebuild your binary.
65+
5366
.. _java-breaking-changes-v4.2:
5467

5568
Version 4.2 Breaking Changes

source/whats-new.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ New features of the 4.7 driver release include:
4343
- Added ``showExpandedEvents`` support for change streams.
4444
- Added ``wallTime`` support to the ``ChangeStreamDocument`` class.
4545

46-
- Added :ref:`clustered index <java-clustered-idexes>` creation support.
46+
- Added :ref:`clustered index <java-clustered-indexes>` creation support.
4747
- Support for new features related to :ref:`qe-manual-feature-qe`,
4848
including support for automatic encryption (MongoDB v6.0 Enterprise or later
4949
is required) and manual encryption.
@@ -58,16 +58,21 @@ New features of the 4.7 driver release include:
5858
- Added builder API methods for additional aggregation stages
5959
including :pipeline:`$search`/:pipeline:`$searchMeta` (Atlas only),
6060
:pipeline:`$densify`, and :pipeline:`$fill`.
61+
6162
- Added the ``BsonExtraElements`` annotation that can be used with POJO encoding
6263
and decoding. ``BsonExtraElements`` enables decoding objects that may receive
6364
new fields in the future without requiring developers to explicitly map
6465
those new fields.
66+
6567
- Performance optimizations including:
6668

6769
- Lock-free implementations of the server session pool and the buffer pool.
6870
- A new cleanup implementation of ``DBCursor`` that uses Java's
6971
Cleaner API instead of finalization, available in Java 9 or later.
7072

73+
- The :ref:`setWindowFields <builders-aggregates-setWindowFields>` builder API
74+
is no longer a beta feature. Changes in the API break both binary and source
75+
compatibility. See :ref:`<java-breaking-changes-v4.7>` for more information.
7176

7277
.. _version-4.6:
7378

0 commit comments

Comments
 (0)