Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28757

Create BSONElementViewMatchableDocument

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.7
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 2017-05-08

      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}]}.

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: