Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 30988 invoked from network); 12 Oct 2010 16:49:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Oct 2010 16:49:55 -0000 Received: (qmail 27641 invoked by uid 500); 12 Oct 2010 16:49:55 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 27584 invoked by uid 500); 12 Oct 2010 16:49:54 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 27575 invoked by uid 99); 12 Oct 2010 16:49:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 16:49:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 16:49:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9CGnX4O026001 for ; Tue, 12 Oct 2010 16:49:33 GMT Message-ID: <4191358.98271286902173375.JavaMail.jira@thor> Date: Tue, 12 Oct 2010 12:49:33 -0400 (EDT) From: "Hairong Kuang (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6996) Allow CodecFactory to return a codec object given a codec' class name In-Reply-To: <1541599.80951286821892815.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-6996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920254#action_12920254 ] Hairong Kuang commented on HADOOP-6996: --------------------------------------- You are right. But before I add the default class constructor, there was a possibility that codecClassName is null. Now I realize that adding the default constructor is an incompatible change. Let me revert this change by deleting the 2nd patch: getCodecByClassName1.patch. > Allow CodecFactory to return a codec object given a codec' class name > --------------------------------------------------------------------- > > Key: HADOOP-6996 > URL: https://issues.apache.org/jira/browse/HADOOP-6996 > Project: Hadoop Common > Issue Type: New Feature > Components: io > Affects Versions: 0.22.0 > Reporter: Hairong Kuang > Assignee: Hairong Kuang > Fix For: 0.22.0 > > Attachments: getCodecByClassName.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.