[JAVA-332] GridFS: Allow seek/reads (get part of a chunk) on stream interface Created: 20/Apr/11  Updated: 18/Jun/12  Resolved: 24/Feb/12

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

Type: Improvement Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Daniel Gottlieb (Inactive)
Resolution: Done Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to JAVA-567 skip() throw exception with the sourc... Closed
Backwards Compatibility: Fully Compatible

 Comments   
Comment by Jeffrey Yemin [ 18/Jun/12 ]

Closing for 2.8.0 release.

Comment by Daniel Gottlieb (Inactive) [ 24/Feb/12 ]

Skipping over an entire chunk will no longer fetch that chunk.

Comment by auto [ 24/Feb/12 ]

Author:

{u'login': u'dgottlieb', u'name': u'Daniel Gottlieb', u'email': u'danny.gottlieb@gmail.com'}

Message: JAVA-332: Have GridFSDBInputFile.MyInputStream.skip be smart about not fetching grid fs chunks that are being entirely skipped over
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/e96482235863c8a40347e47f87424ff021af993d

Comment by Thilo Planz [ 29/Dec/11 ]

A partial and already very useful solution for this could be to implement InputStream#skip. This way one could open the GridFS InputStream, skip forward to the section of interest and read just that. This can be implemented efficiently (i.e. without accessing any chunks that are not needed). Not the full seek functionality, but relatively easy to do and without API changes.

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