[SERVER-28757] Create BSONElementViewMatchableDocument Created: 12/Apr/17  Updated: 12/Oct/17  Resolved: 02/May/17

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

Type: Task Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Tess Avitabile (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-28763 Create UpdateArrayNode Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2017-05-08
Participants:

 Description   

Create a class BSONElementViewMatchableDocument, which inherits from MatchableDocument. BSONElementViewMatchableDocument is similar to BSONMatchableDocument, except that it holds a BSONElement rather than a BSONObj, and it creates its BSONElementIterator after removing the first field in path. BSONElementIterator must be modified to take a BSONObj or BSONElement, which just requires changing getFieldDottedOrArray() to take a BSONObj or BSONElement.

This will be used to efficiently determine whether an array element matches a filter, e.g. {$or: [{i: 0}, {“i.a”: 1}]}.



 Comments   
Comment by Githook User [ 02/May/17 ]

Author:

{u'username': u'tessavitabile', u'name': u'Tess Avitabile', u'email': u'tess.avitabile@mongodb.com'}

Message: SERVER-28757 Create BSONElementViewMatchableDocument
Branch: master
https://github.com/mongodb/mongo/commit/347bef09378ebbed35b1ebd36ffd547029313583

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