Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
Execution Team 2022-10-17
Description
To improve the flexibility of building BSONColumn binaries we should consider implementing the following:
- Allow appending of BSONObj without needing to wrap in another BSONObj to be able to get a BSONElement. With BSONObj we already know the type (Object or Array) and the user should not have to copy everything just to put a type byte before in the memory layout.
- Appending an EOO BSONElement should be treated as index skip. This is the representation BSONColumn (the decompressor) uses.
- Support extracting a BSONColumn binary and allow continued appending to the BSONColumnBuilder. Systems that currently need to write out "interim" state need to start over building the BSONColumn from the beginning to add new data.