You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class. This means the ``org.reactivestreams.Publisher[Void]`` type no longer
117
116
converts automatically to ``org.mongodb.scala.SingleObservable[Void]``. The
@@ -121,7 +120,7 @@ Version 5.0 Breaking Changes
121
120
.. After the 5.0 Scala API docs are released, this line will be uncommented.
122
121
For more information, see the `Observable trait documentation <https://mongodb.github.io/mongo-java-driver/5.0/apidocs/mongo-scala-driver/org/mongodb/scala/Observable.html>`__.
123
122
124
-
- This driver changes how ``ClusterSettings`` computes
123
+
- Changes how ``ClusterSettings`` computes
125
124
``ClusterConnectionMode``, making it more consistent by using the specified
126
125
replica set name, regardless of how it is configured. Previously, replica set
127
126
name was only considered if it was set by the connection string.
@@ -147,11 +146,101 @@ Version 5.0 Breaking Changes
147
146
.build()
148
147
.getMode()
149
148
150
-
- This driver changes how ``BsonDecimal128`` values respond to method calls, by
149
+
- Changes how ``BsonDecimal128`` values respond to method calls, by
151
150
responding in the same way as ``Decimal128`` values. In particular,
152
151
``BsonDecimal128.isNumber()`` now returns ``true``, and
153
152
``BsonDecimal128.asNumber()`` returns the equivalent ``BsonNumber``.
154
153
154
+
- Removes the ``Parameterizable`` interface. Instead of
155
+
implementing this interface on a custom ``Codec`` type,
156
+
override the ``CodecProvider.get()`` method on the
157
+
codec's ``CodecProvider`` if the codec is intended for a parameterized
158
+
type.
159
+
160
+
- Removes the ``isSlaveOk()`` method from the
161
+
``ReadPreference`` and ``TaggableReadPreference`` classes. To check whether a read preference allows
162
+
reading from a secondary member of a replica set, use the ``isSecondaryOk()`` methods from
163
+
these classes instead.
164
+
165
+
- Removes the ``DBCollection.getStats()`` and ``DBCollection.isCapped()``
166
+
helper methods for the ``collStats`` command. Instead of these methods, you can use the
167
+
``$collStats`` aggregation pipeline stage. For an example of how to use this pipeline
168
+
stage, see :manual:`What's New <java-deprecations-4.11>` for v4.11 of the {+driver-short+}.
169
+
170
+
- Removes the ``MapCodec`` and ``IterableCodec`` classes.
171
+
Instead of ``MapCodec``, use ``MapCodecProvider``. Instead of ``IterableCodec``,
172
+
use ``CollectionCodecProvider``, or ``IterableCodecProvider`` for ``Iterable``
173
+
types that aren't ``Collection`` types.
174
+
175
+
- Removes the ``sharded()`` and ``nonAtomic()`` methods from the
176
+
``MapReducePublisher`` and ``MapReduceIterable`` classes.
177
+
178
+
- Removes the following methods for use with ``geoHaystack`` indexes:
179
+
180
+
- ``Indexes.geoHaystack()``
181
+
- ``IndexOptions.getBucketSize()``
182
+
- ``IndexOptions.bucketSize()``
183
+
184
+
Instead, you can use the ``$geoNear`` aggregation pipeline stage or a geospatial
185
+
query operator on a 2d index. For more information, see the
186
+
:manual:`Geospatial Queries page </geospatial-queries>` in the {+mdb-server+} manual.
187
+
188
+
- Removes the ``oplogReplay`` option from find operations. This
189
+
includes the following methods:
190
+
191
+
- ``DBCursor.oplogReplay()``
192
+
- ``DBCollectionFindOptions.isOplogReplay()``
193
+
- ``DBCollectionFindOptions.oplogReplay()``
194
+
- ``FindPublisher.oplogReplay()``
195
+
- ``FindIterable.oplogReplay()``
196
+
197
+
- Removes the following ``Exception`` constructors:
0 commit comments