Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-454

GridFsFile should expose data keys as constants

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.6.5
    • API
    • None

    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:

      new BasicDBObject(GridFsFile.CONTENT_TYPE, "application/xml");

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            oliver.gierke Oliver Gierke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: