[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: |
|
||||||||
| 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: |
| 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. |