Hadoop Common
  1. Hadoop Common
  2. HADOOP-6996

Allow CodecFactory to return a codec object given a codec' class name

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: io
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      CodecFactory specify the list of codec that are supported by Hadoop. However, it returns a codec only by a file's name. I would like to make getCodec method to alternatively take a codec's class name.

      This is required by HDFS-1435, where
      1. it allows an HDFS admin to configure which codec to use to save an image.
      2. It stores the codec class name in its on-disk image instead of a file's suffix.

      When saving and reading an image, I'd like to get an codec from CodecFactory by its class name.

        Issue Links

          Activity

            People

            • Assignee:
              Hairong Kuang
              Reporter:
              Hairong Kuang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development