[JAVA-454] GridFsFile should expose data keys as constants Created: 19/Oct/11 Updated: 29/Jan/19 Resolved: 29/Jan/19 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.6.5 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Oliver Gierke | Assignee: | Ross Lawley |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
GridFsFile currently uses hard-coded field names to store the metadata information (filename, content length etc.). To query documents in turn one has to know those field names and thus look into the implementation. It would be cool if the default metadata field names would be exposed via public constants so that one can build a query like this:
|
| Comments |
| Comment by Ross Lawley [ 29/Jan/19 ] |
|
Apologies, this ticket appears to have fallen behind something and managed to have gotten lost. I'm going to close as "Won't Fix" because the API has now effectively been deprecated (as it uses the deprecated DB class). The newer GridFS implementation follows the GridFS specification. With this new API, there are no presumptions about how files are used and as such metadata is completely flexible. Ross |