-
Interfaces Interface Description com.mongodb.util.ObjectSerializer there is no replacement for this interface
-
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.DBAddress This class is no longer needed, as the driver does not rely on it for anything anymore. UseServerAddress
instead.com.mongodb.gridfs.CLI there is no replacement for this classcom.mongodb.GroupCommand the group command was deprecated in MongoDB 3.4com.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.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.util.Util there is no replacement for this class
-
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.
-
Exceptions Exceptions Description com.mongodb.util.JSONParseException there is no replacement for this class
-
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).com.mongodb.QueryOperators.COMMENT com.mongodb.QueryOperators.EXPLAIN com.mongodb.QueryOperators.HINT com.mongodb.QueryOperators.MAX com.mongodb.QueryOperators.MAX_SCAN com.mongodb.QueryOperators.MIN com.mongodb.QueryOperators.ORDER_BY com.mongodb.QueryOperators.RETURN_KEY com.mongodb.QueryOperators.SHOW_DISK_LOC com.mongodb.QueryOperators.SNAPSHOT
-
Constructors Constructor Description com.mongodb.DB(Mongo, String) PreferMongo.getDB(String)
com.mongodb.Mongo() Replaced byMongoClient()
)com.mongodb.MongoClient(ServerAddress, List<MongoCredential>) com.mongodb.MongoOptions() com.mongodb.MongoURI(String) Replaced byMongoClientURI(String)