[SERVER-56300] Add append range functionality to BSON obj and array builders Created: 23/Apr/21  Updated: 29/Oct/23  Resolved: 10/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0, 5.0.7

Type: Task Priority: Major - P3
Reporter: Henrik Edin Assignee: Kris Satya (Inactive)
Resolution: Fixed Votes: 0
Labels: execution_intern, neweng, techdebt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Execution Team 2021-06-14
Participants:

 Description   

There are already overloads to append some common data structures such as vector, list, set and map. We should also have an interface that can accept a range of two iterators.

It can be used for either appending from different data structures such as boost or to just append a subset (range) without having to create a temporary vector.



 Comments   
Comment by Githook User [ 21/Feb/22 ]

Author:

{'name': 'Kris Satya', 'email': 'kris.satya@mongodb.com', 'username': 'KoolCards'}

Message: SERVER-56300 Add append functionality for iterator ranges in BSONObjBuilder

(cherry picked from commit 4b43aaaa4b4974322d6ed5f2e0883b6de3d384e3)
Branch: v5.0
https://github.com/mongodb/mongo/commit/88148a11a78d5d36dfad440b749a180269ad2e8d

Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 10/Jun/21 ]

Author:

{'name': 'Kris Satya', 'email': 'kris.satya@mongodb.com', 'username': 'KoolCards'}

Message: SERVER-56300 Add append functionality for iterator ranges in BSONObjBuilder
Branch: master
https://github.com/mongodb/mongo/commit/4b43aaaa4b4974322d6ed5f2e0883b6de3d384e3

Comment by Gregory Noma [ 07/Jun/21 ]

Here are the current vector, list, set, and map overloads that Henrik mentioned.

Comment by Connie Chen [ 29/Apr/21 ]

henrik.edin - can you leave a few pointers of where this would be handy in the code.

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