Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-682

Expose the DataFile's metadata entirely

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4.1
    • 1.5.0
    • java
    • None
    • Linux, Java 1.6

    • Reviewed
    • Provide a way to list all metadata found in the Data Files.
    • java, data file, metadata

    Description

      Right now, the DataFileReader (DataFileStream actually) only allows one to query the meta data of a file by issuing a key. A user who does not know what metadata may be stored in the file, has no way to find out by getting a list/map of all there is. Perhaps we should provide a way for the user to retrieve global metadata info to query it back for values.

      Attached a patch (initial) that simply exposes the HashMap that contains the metadata after initialization of the data file reader.

      Attachments

        1. avro.metadata.datafile.r3.diff
          2 kB
          Harsh J
        2. avro.metadata.datafile.r2.diff
          1 kB
          Harsh J
        3. avro.metadata.datafile.r1.diff
          0.7 kB
          Harsh J
        4. avro.metadata.datafile.r1.diff
          0.7 kB
          Harsh J

        Activity

          People

            qwertymaniac Harsh J
            qwertymaniac Harsh J
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified