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
112
-
converts automatically to ``org.mongodb.scala.SingleObservable[Void]``. The also
113
-
API exposes ``org.mongodb.scala.Observable[Unit]`` instead of
112
+
converts automatically to ``org.mongodb.scala.SingleObservable[Void]``. The
113
+
API also exposes ``org.mongodb.scala.Observable[Unit]`` instead of
114
114
``org.mongodb.scala.Observable[Void]``.
115
115
116
116
.. After the 5.0 Scala API docs are released, this line will be uncommented.
117
117
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>`__.
118
118
119
+
- This driver version removes the ``Parameterizable`` interface. Instead of
120
+
implementing this interface on a custom ``Codec`` type,
121
+
override the ``CodecProvider.get()`` method on the
122
+
codec's ``CodecProvider`` if the codec is intended for a parameterized
123
+
type.
124
+
125
+
- This driver version removes the ``isSlaveOk()`` method from the
126
+
``ReadPreference`` and ``TaggableReadPreference`` classes. To check whether a read preference allows
127
+
reading from a secondary member of a replica set, use the ``isSecondaryOk()`` methods from
128
+
these classes instead.
129
+
130
+
- This driver version removes the ``DBCollection.getStats()`` and ``DBCollection.isCapped()``
131
+
helper methods for the ``collStats`` command. Instead of these methods, you can use the
132
+
``$collStats`` aggregation pipeline stage. For an example of how to use this pipeline
133
+
stage, see `What's New <java-deprecations-4.11>` for v4.11 of the {+driver-short+}.
134
+
135
+
- This driver version removes the ``IterableCodec`` and ``MapCodec`` types.
136
+
Use ``MapCodecProvider`` instead of ``MapCodec`` and ``CollectionCodecProvider``
137
+
instead of ``IterableCodec``.
138
+
139
+
- This driver version removes the ``sharded`` and ``nonAtomic`` options from the
140
+
``MapReducePublisher`` and ``MapReduceIterable`` classes.
141
+
142
+
- This driver version removes the following methods for use with ``geoHaystack`` indexes:
143
+
144
+
- ``Indexes.geoHaystack()``
145
+
- ``IndexOptions.getBucketSize()``
146
+
- ``IndexOptions.bucketSize()``
147
+
148
+
Instead, you can use the ``$geoNear`` aggregation pipeline stage or a geospatial
149
+
query operator on a 2d index. For more information about geospatial queries, see the
0 commit comments