Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 76169 invoked from network); 28 Oct 2010 23:49:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Oct 2010 23:49:46 -0000 Received: (qmail 29057 invoked by uid 500); 28 Oct 2010 23:49:45 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 29031 invoked by uid 500); 28 Oct 2010 23:49:45 -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 29023 invoked by uid 99); 28 Oct 2010 23:49:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 23:49:45 +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; Thu, 28 Oct 2010 23:49:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9SNnPB9014801 for ; Thu, 28 Oct 2010 23:49:25 GMT Message-ID: <19505596.129651288309765035.JavaMail.jira@thor> Date: Thu, 28 Oct 2010 19:49:25 -0400 (EDT) From: "Hairong Kuang (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (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:all-tabpanel ] Hairong Kuang updated HADOOP-6996: ---------------------------------- Resolution: Fixed Hadoop Flags: [Reviewed] Status: Resolved (was: Patch Available) I've committed this! > 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.