[JAVA-1442] Make RawBsonDocument#get return RawBsonDocument instances Created: 12/Sep/14  Updated: 17/Aug/18  Resolved: 08/Mar/18

Status: Closed
Project: Java Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 3.7.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes JAVA-2931 Unable to encode a BsonDocument with ... Closed
Related
is related to JAVA-2932 Add RawBsonArrayCodec Backlog
Case:
Backwards Compatibility: Minor Change

 Description   

Currently RawBsonDocument.get(Object key), when returning a BsonDocument, fulling decodes it. A more efficient way would be to return a RawBsonDocument pointing to just the raw bytes, which may or may not be a slice of the bytes managed by the container.



 Comments   
Comment by Githook User [ 08/Mar/18 ]

Author:

{'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley', 'username': 'rozza'}

Message: RawBsonDocument#get will return RawBsonDocuments & RawBsonArrays

JAVA-1442
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/da5a5c233297397e47349486b79ea6cc8c151693

Comment by Ross Lawley [ 15/Feb/18 ]

PR: https://github.com/rozza/mongo-java-driver/pull/254

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