Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 69261 invoked from network); 10 Sep 2008 19:22:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2008 19:22:35 -0000 Received: (qmail 49029 invoked by uid 500); 10 Sep 2008 19:22:32 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 49012 invoked by uid 500); 10 Sep 2008 19:22:32 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 49001 invoked by uid 99); 10 Sep 2008 19:22:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2008 12:22:32 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2008 19:21:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 61AD8234C1D7 for ; Wed, 10 Sep 2008 12:21:44 -0700 (PDT) Message-ID: <886278451.1221074504399.JavaMail.jira@brutus> Date: Wed, 10 Sep 2008 12:21:44 -0700 (PDT) From: "stack (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-661) Allow to specify a user supplied row key comparator for a table In-Reply-To: <1204314518.1212517484964.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629923#action_12629923 ] stack commented on HBASE-661: ----------------------------- Clint: I'd suggest you become a watcher on HBASE-880 and HBASE-849 so you can keep an eye on progress and ensure your needs are covered. > Allow to specify a user supplied row key comparator for a table > ---------------------------------------------------------------- > > Key: HBASE-661 > URL: https://issues.apache.org/jira/browse/HBASE-661 > Project: Hadoop HBase > Issue Type: New Feature > Components: client, master, regionserver > Affects Versions: 0.2.0 > Reporter: Clint Morgan > Assignee: Clint Morgan > > Now that row keys are byte arrays, users should be able to specify a comparator at table creation time. > My use case for this is to implement secondary indexes. In this case, row keys for the index tables will be constructed from an optional prefix of the original row key as well as the content of column that is being indexed. Then the comparator will first compare based on the key prefix, and break ties by deserializing the column values and using the deserialized type's compareTo method. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.