Return-Path: Delivered-To: apmail-hadoop-pig-dev-archive@www.apache.org Received: (qmail 66714 invoked from network); 8 Dec 2009 18:52:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 18:52:44 -0000 Received: (qmail 83173 invoked by uid 500); 8 Dec 2009 18:52:42 -0000 Delivered-To: apmail-hadoop-pig-dev-archive@hadoop.apache.org Received: (qmail 82483 invoked by uid 500); 8 Dec 2009 18:52:40 -0000 Mailing-List: contact pig-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pig-dev@hadoop.apache.org Delivered-To: mailing list pig-dev@hadoop.apache.org Received: (qmail 82455 invoked by uid 99); 8 Dec 2009 18:52:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 18:52:40 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 18:52:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3763629A0018 for ; Tue, 8 Dec 2009 10:52:18 -0800 (PST) Message-ID: <50250830.1260298338225.JavaMail.jira@brutus> Date: Tue, 8 Dec 2009 18:52:18 +0000 (UTC) From: "Gaurav Jain (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Commented: (PIG-1125) [zebra] Using typed APIs for Zebra's Map/Reduce interface In-Reply-To: <1499929441.1259890760795.JavaMail.jira@brutus> 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/PIG-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787649#action_12787649 ] Gaurav Jain commented on PIG-1125: ---------------------------------- in requireSortedTable, we are taking array of strings for sortcolumns which can be changed to List to be consistent with typeApi semantics > [zebra] Using typed APIs for Zebra's Map/Reduce interface > --------------------------------------------------------- > > Key: PIG-1125 > URL: https://issues.apache.org/jira/browse/PIG-1125 > Project: Pig > Issue Type: Improvement > Affects Versions: 0.4.0 > Reporter: Chao Wang > Assignee: Chao Wang > Fix For: 0.6.0, 0.7.0 > > Attachments: PIG-1125.patch > > > We plan to modify Zebra's M/R interface to use typed APIs, i.e., APIs taking object arguments, instead of String arguments. > Take TableInputFormat as an example: > setSchema(jobConf conf, String schema) is changing to setSchema(jobConf conf, ZebraSchemaInfo schemaInfo) > setProjection(jobConf conf, String projection) is changing to setProjection(jobConf conf, ZebraProjectionInfo projectionInfo) > and so on. > Benefits: 1) Typed APIs make it easier to detect usage mistakes earlier and 2) Typed APIs are richer and hide things better. > In the meanwhile, we plan to make the old APIs deprecated, instead of removing them, for the sake of safety. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.