[JAVA-3022] Deprecate DBCollectionFindOptions#getModifiers Created: 07/Oct/18  Updated: 28/Oct/23  Resolved: 09/Oct/18

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.9.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Query modifiers are a thing of the past with the introduction of the find command in MongoDB 3.2, and are deprecated everywhere else in the CRUD API. Let's do the same for DBCollectionFindOptions#getModifiers.



 Comments   
Comment by Githook User [ 09/Oct/18 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@10gen.com', 'username': 'jyemin'}

Message: Apply hint, min, and max to explainable find operation

As part of the changes in DBCursor for JAVA-3022, hint, min, and max
are set as individual properties on FindOperation rather than via
modifiers. However, FindOperation was not correctly applying them to
a $explain query in pre-3.2 MongoDB servers. Now it is.

JAVA-3022
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/84142a331d95b2be2f33564003990e22cbd91fc2

Comment by Githook User [ 09/Oct/18 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@10gen.com', 'username': 'jyemin'}

Message: Deprecate DBCollectionFindOptions#getModifiers

Replace with per-modifier properties:

  • comment
  • hint
  • min
  • max
  • returnKey
  • showRecordId

JAVA-3022
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/02a7f06f834872110bb0ec4c7aef6135f5485489

Generated at Thu Feb 08 08:58:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.