Avro
  1. Avro
  2. AVRO-682

Expose the DataFile's metadata entirely

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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.

      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

        Harsh J created issue -
        Harsh J made changes -
        Field Original Value New Value
        Attachment avro.metadata.datafile.r1.diff [ 12457925 ]
        Harsh J made changes -
        Attachment avro.metadata.datafile.r1.diff [ 12457927 ]
        Harsh J made changes -
        Attachment avro.metadata.datafile.r2.diff [ 12457935 ]
        Harsh J made changes -
        Attachment avro.metadata.datafile.r3.diff [ 12458042 ]
        Doug Cutting made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Resolution Fixed [ 1 ]
        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

                Development