Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9CB88ED8E for ; Fri, 4 Jan 2013 07:54:16 +0000 (UTC) Received: (qmail 69578 invoked by uid 500); 4 Jan 2013 07:54:15 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 69192 invoked by uid 500); 4 Jan 2013 07:54:15 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 69133 invoked by uid 99); 4 Jan 2013 07:54:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2013 07:54:14 +0000 Date: Fri, 4 Jan 2013 07:54:14 +0000 (UTC) From: "Anil Gupta (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7474) Endpoint Implementation to support Scans with Sorting of Rows based on column values(similar to "order by" clause of RDBMS) 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/HBASE-7474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13543682#comment-13543682 ] Anil Gupta commented on HBASE-7474: ----------------------------------- How to try out the patch? By default the patch contains an end-end implementation for sorting based on BigDecimal column. In order to support any other datatype you just need to implement SortingColumnInterpreter interface. Steps required to do sorting: 1.Instantiate a class which implements SortingColumnInterpreter. 2.Prepare the scan object 3.Instantiate the HTable 4.Instantiate SortingClient 5.Invoke the method of sorting client. > Endpoint Implementation to support Scans with Sorting of Rows based on column values(similar to "order by" clause of RDBMS) > --------------------------------------------------------------------------------------------------------------------------- > > Key: HBASE-7474 > URL: https://issues.apache.org/jira/browse/HBASE-7474 > Project: HBase > Issue Type: New Feature > Components: Coprocessors, Scanners > Affects Versions: 0.94.3 > Reporter: Anil Gupta > Priority: Minor > Labels: coprocessors, scan, sort > Fix For: 0.94.5 > > Attachments: hbase-7474.patch, SortingEndpoint_high_level_flowchart.pdf > > > Recently, i have developed an Endpoint which can sort the Results(rows) on the basis of column values. This functionality is similar to "order by" clause of RDBMS. I will be submitting this Patch for HBase0.94.3 > I am almost done with the initial development and testing of feature. But, i need to write the JUnits for this. I will also try to make design doc. > Thanks, > Anil Gupta > Software Engineer II, Intuit, inc -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira