[SERVER-23990] Allow BSONObj/BSONElement and Document/Value to hash with respect to a collation Created: 29/Apr/16  Updated: 19/Nov/16  Resolved: 12/Sep/16

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.3.14

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-25177 mongo-rocks compile broken by StringD... Closed
is related to SERVER-24508 Make BSONObj/BSONElement and Document... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 14 (05/13/16), Query 15 (06/03/16), Query 16 (06/24/16), Query 17 (07/15/16), Query 2016-08-29, Query 2016-09-19
Participants:
Linked BF Score: 0

 Description   

The following hashing methods/functors may need to hash collator-generated comparison keys rather than verbatim strings:

  • BSONObj::Hasher
  • BSONElement::Hasher
  • StringData::Hasher
  • Document::hash_combine
  • Value::Hash
  • Value::hash_combine


 Comments   
Comment by Githook User [ 12/Sep/16 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-23990 allow parallel oplog application on collection with non-simple collation
Branch: master
https://github.com/mongodb/mongo/commit/a3e0d0bfde22d7fd7ab89c31fe34ddf19948ad9b

Comment by Githook User [ 09/Sep/16 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-23990 move BSONObj/BSONElement hashing into

{BSONObj,BSONElement}

::ComparatorInterface
Branch: master
https://github.com/mongodb/mongo/commit/613134ad5960767276df350db1f90cc919225dd5

Comment by David Storch [ 26/Jul/16 ]

The StringData and Document/Value changes for this ticket are complete. The remaining work is to make BSONObj and BSONElement hashing collation-aware.

Comment by Githook User [ 20/Jul/16 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-23990 add ValueComparator::Hasher for collation-aware Value hashing
Branch: master
https://github.com/mongodb/mongo/commit/7e986cc77f121e3af9a5f1217e89913745fc07f9

Comment by Githook User [ 20/Jul/16 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-23990 move StringData hashing to StringData::ComparatorInterface

This allows strings to be hashed in a collation-aware fashion.
Branch: master
https://github.com/mongodb/mongo/commit/0b32158c9cb44b31078ca923ef5c8fff755c952a

Generated at Thu Feb 08 04:05:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.