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

Expose the DataFile's metadata entirely

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: 1.5.0
    • Component/s: java
    • Labels:
      None
    • Environment:

      Linux, Java 1.6

    • Hadoop Flags:
      Reviewed
    • Release Note:
      Provide a way to list all metadata found in the Data Files.
    • Tags:
      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.r1.diff
          0.7 kB
          Harsh J
        2. avro.metadata.datafile.r1.diff
          0.7 kB
          Harsh J
        3. avro.metadata.datafile.r2.diff
          1 kB
          Harsh J
        4. avro.metadata.datafile.r3.diff
          2 kB
          Harsh J

          Activity

            People

            • Assignee:
              qwertymaniac Harsh J
              Reporter:
              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