Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6996

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.22.0
    • 0.22.0
    • io
    • None
    • 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.

      Attachments

        1. getCodecByClassName.patch
          5 kB
          Hairong Kuang

        Issue Links

          Activity

            People

              hairong Hairong Kuang
              hairong Hairong Kuang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: