drazzib opened a new pull request #207: GORA-649 Replace usage of deprecated 
API of MongoDB driver
URL: https://github.com/apache/gora/pull/207
 
 
   - Use new `MongoDatabase` and `MongoCollection` API as described on 
[Databases and 
Collections](http://mongodb.github.io/mongo-java-driver/3.12/driver/tutorials/databases-collections/)
   - Use [Codec and 
CodecRegistry](http://mongodb.github.io/mongo-java-driver/3.12/bson/codecs/) 
interface instead of `DefaultDBEncoder`
   - `MongoFilterUtil`: Avoid changing query passed as reference so adapted to 
return an `Optional` with subfilter to apply
   - Use `org.bson.Document` as container everywhere (replace `DBObject`)
   - Use 
[Filters](http://mongodb.github.io/mongo-java-driver/3.12/builders/filters/) 
and 
[Projections](http://mongodb.github.io/mongo-java-driver/3.12/builders/projections/)
 helper methods to facilitate the creation of filter documents
   - `MongoDBResult`: pass `cursor` and `size` as constructor args

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to