Deprecated API
Contents
-
Deprecated Interfaces Interface Description com.mongodb.util.ObjectSerializer there is no replacement for this interface
-
Deprecated Classes Class Description com.mongodb.AggregationOutput Replace with use of aggregate methods inDBCollection
that return instances ofCursor
.com.mongodb.Bytes there is no replacement for this classcom.mongodb.gridfs.CLI there is no replacement for this classcom.mongodb.DBAddress This class is no longer needed, as the driver does not rely on it for anything anymore. UseServerAddress
instead.com.mongodb.GroupCommand the group command was deprecated in MongoDB 3.4com.mongodb.util.JSON This class has been superseded by to toJson and parse methods on BasicDBObjectcom.mongodb.util.JSONCallback This class has been superseded by to toJson and parse methods on BasicDBObjectcom.mongodb.util.JSONSerializers This class has been superseded by to toJson and parse methods on BasicDBObjectcom.mongodb.Mongo Replaced byMongoClient
. Any non-deprecated methods will be moved to MongoClient. The rest will be removed along with this class.com.mongodb.Mongo.Holder com.mongodb.MongoOptions Please useMongoClientOptions
instead.com.mongodb.MongoURI Replaced byMongoClientURI
com.mongodb.ParallelScanOptions the parallelCollectionScan command will be removed in MongoDB 4.2com.mongodb.ReflectionDBObject Replaced byPojoCodecProvider
com.mongodb.ReplicaSetStatus com.mongodb.util.Util there is no replacement for this class
-
Deprecated Enums Enum Description com.mongodb.AggregationOptions.OutputMode There is no replacement for this. Applications can assume that the driver will use a cursor for server versions that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate command.
-
Deprecated Exceptions Exceptions Description com.mongodb.util.JSONParseException there is no replacement for this class
-
Deprecated Fields Field Description com.mongodb.gridfs.GridFS.MAX_CHUNKSIZE You can calculate max chunkSize with a similar formulaMongo.getMaxBsonObjectSize()
- 500*1000. Please ensure that you left enough space for metadata (500kb is enough).