Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 25334 invoked from network); 20 Mar 2009 20:09:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2009 20:09:14 -0000 Received: (qmail 80982 invoked by uid 500); 20 Mar 2009 20:09:11 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 80956 invoked by uid 500); 20 Mar 2009 20:09:11 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 80945 invoked by uid 99); 20 Mar 2009 20:09:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2009 13:09:11 -0700 X-ASF-Spam-Status: No, hits=-1999.6 required=10.0 tests=ALL_TRUSTED,SUBJECT_FUZZY_TION 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; Fri, 20 Mar 2009 20:09:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7B5FA234C003 for ; Fri, 20 Mar 2009 13:08:50 -0700 (PDT) Message-ID: <1559264483.1237579730497.JavaMail.jira@brutus> Date: Fri, 20 Mar 2009 13:08:50 -0700 (PDT) From: "Owen O'Malley (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-5528) Binary partitioner In-Reply-To: <577817975.1237394570467.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12684013#action_12684013 ] Owen O'Malley commented on HADOOP-5528: --------------------------------------- I understand now. right is defined as bytes from the right to ignore. Unfortunately that means you *can't* use it to pick up bytes 4-8 if you don't know the length. How about using python style offsets where negative numbers means count from the right. That will allow a lot more flexibility. 0 = start of bytes 1 = after first byte -2 = before last byte -1 = end of bytes So left=4, right=8 would use bytes 4-8 from the right. Left=-5, right=-1 would use the last 4 bytes. > Binary partitioner > ------------------ > > Key: HADOOP-5528 > URL: https://issues.apache.org/jira/browse/HADOOP-5528 > Project: Hadoop Core > Issue Type: New Feature > Components: mapred > Reporter: Klaas Bosteels > Assignee: Klaas Bosteels > Attachments: HADOOP-5528.patch > > > It would be useful to have a {{BinaryPartitioner}} that partitions {{BinaryComparable}} keys by hashing a configurable part of the bytes array corresponding to each key. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.