Skip to content

Commit f6cd070

Browse files
committed
JY review
1 parent e9c688b commit f6cd070

File tree

2 files changed

+24
-38
lines changed

2 files changed

+24
-38
lines changed

source/upgrade.txt

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -78,25 +78,23 @@ Version 5.0 Breaking Changes
7878
compatibility, update any source code that uses these methods and rebuild
7979
your binary.
8080

81-
- The following record annotations from the
82-
``org.bson.codecs.record.annotations`` package are replaced with
83-
annotations of the same name from the ``org.bson.codecs.pojo.annotations`` package:
84-
85-
- ``BsonId``
86-
- ``BsonProperty``
87-
- ``BsonRepresentation``
88-
89-
- This driver version removes the ``Filters.eqFull()`` method, released
90-
exclusively in ``Beta``, which allowed you
91-
to construct an equality filter when performing a vector search.
92-
You can use the ``Filters.eq()`` method when instantiating a
93-
``VectorSearchOptions`` type, as shown in the following code:
94-
95-
.. code-block:: java
81+
- The following record annotations from the
82+
``org.bson.codecs.record.annotations`` package are replaced with
83+
annotations of the same name from the ``org.bson.codecs.pojo.annotations`` package:
9684

97-
VectorSearchOptions opts = vectorSearchOptions().filter(eq("x", 8));
85+
- ``BsonId``
86+
- ``BsonProperty``
87+
- ``BsonRepresentation``
9888

99-
.. _java-breaking-changes-v5.0-observables:
89+
- This driver version removes the ``Filters.eqFull()`` method, released
90+
exclusively in ``Beta``, which allowed you
91+
to construct an equality filter when performing a vector search.
92+
You can use the ``Filters.eq()`` method when instantiating a
93+
``VectorSearchOptions`` type, as shown in the following code:
94+
95+
.. code-block:: java
96+
97+
VectorSearchOptions opts = vectorSearchOptions().filter(eq("x", 8));
10098

10199
- The ``getServerValue()`` method now returns a value of type ``Long`` instead of type
102100
``Integer``. Similarly, the ``getLocalValue()`` method returns a value of type
@@ -113,20 +111,17 @@ Version 5.0 Breaking Changes
113111
that shows how to call ``SocketSettings`` methods, see the :ref:`SocketSettings Example
114112
<java-socketsettings-example>` in the Specify MongoClient Settings
115113
guide. This change breaks binary compatibility (requires recompiling) but does not
116-
require code changes.
117-
118-
This change breaks binary compatibility (requires recompiling) but does not
119-
require code changes.
114+
require code changes.
120115

121-
- This driver version removes the ``Filters.eqFull()`` method, released
122-
exclusively in ``Beta``, which allowed you
123-
to construct an equality filter when performing a vector search.
124-
You can use the ``Filters.eq()`` method when instantiating a
125-
``VectorSearchOptions`` type, as shown in the following code:
116+
- This driver version removes the ``Filters.eqFull()`` method, released
117+
exclusively in ``Beta``, which allowed you
118+
to construct an equality filter when performing a vector search.
119+
You can use the ``Filters.eq()`` method when instantiating a
120+
``VectorSearchOptions`` type, as shown in the following code:
126121

127-
.. code-block:: java
128-
129-
VectorSearchOptions opts = vectorSearchOptions().filter(eq("x", 8));
122+
.. code-block:: java
123+
124+
VectorSearchOptions opts = vectorSearchOptions().filter(eq("x", 8));
130125

131126
.. _java-breaking-changes-v5.0-observables:
132127

source/whats-new.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ What's New in 5.0
4848

4949
The 5.0 driver release introduces the following features:
5050

51-
- ``ClusterSettings`` computes ``ClusterConnectionMode`` more consistently using
52-
the specified replica set name, regardless of how it is configured.
53-
Previously, replica set name was only considered if it was set by the
54-
connection string.
55-
56-
- ``BsonDecimal128`` values respond to method calls in the same way as
57-
``Decimal128`` values. In particular, ``BsonDecimal128.isNumber`` now returns
58-
``true``, and ``BsonDecimal128.asNumber`` returns the equivalent ``BsonNumber``.
59-
6051
- The ``getElapsedTime()`` method on ``com.mongodb.event.ConnectionReadyEvent``
6152
includes the time taken to deliver the ``ConnectionCreatedEvent``. That is,
6253
the time returned includes the duration of the

0 commit comments

Comments
 (0)