[JAVA-419] implement the putAll( Map m ) method in GridFSFile.java Created: 18/Aug/11  Updated: 03/Sep/15  Resolved: 02/Sep/15

Status: Closed
Project: Java Driver
Component/s: GridFS
Affects Version/s: None
Fix Version/s: 3.1.0

Type: Improvement Priority: Major - P3
Reporter: Frank Wen Assignee: Unassigned
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I use the method in my project, but found it's not implemented, it just throw new UnsupportedOperationException();

Why not implement it? it's easy. And the mothod is useful.



 Comments   
Comment by Ross Lawley [ 02/Sep/15 ]

There is a new GridFS implementation JAVA-1713 that follows the new GridFS specification. As metadata is a Document in this new API support for putAll is part of the Document API.

Comment by Thilo Planz [ 09/Jan/12 ]

The same applies for the other putAll (with a BSONObject argument).

It also just throws UnsupportedOperationException.

Is there a spec problem with these two? I suppose not, since put itself is implemented and works, and putAll can just be calling put in a loop for all keys in the Map/BSONObject.

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