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 79C7699E6 for ; Fri, 9 Mar 2012 08:35:17 +0000 (UTC) Received: (qmail 46660 invoked by uid 500); 9 Mar 2012 08:35:17 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 46601 invoked by uid 500); 9 Mar 2012 08:35:16 -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 46582 invoked by uid 99); 9 Mar 2012 08:35:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 08:35:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 08:35:15 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0048511479 for ; Fri, 9 Mar 2012 08:34:55 +0000 (UTC) Date: Fri, 9 Mar 2012 08:34:54 +0000 (UTC) From: "lifeng (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1090438740.42715.1331282095002.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1629269007.42161.1316441108941.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4435) Add Group By functionality using Coprocessors 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/HBASE-4435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225933#comment-13225933 ] lifeng commented on HBASE-4435: ------------------------------- 60000 millis timeout while waiting for channel to be ready for read. ch : java.nio.channels.SocketChannel > Add Group By functionality using Coprocessors > --------------------------------------------- > > Key: HBASE-4435 > URL: https://issues.apache.org/jira/browse/HBASE-4435 > Project: HBase > Issue Type: Improvement > Components: coprocessors > Reporter: Nichole Treadway > Priority: Minor > Attachments: HBase-4435.patch > > > Adds in a Group By -like functionality to HBase, using the Coprocessor framework. > It provides the ability to group the result set on one or more columns (groupBy families). It computes statistics (max, min, sum, count, sum of squares, number missing) for a second column, called the stats column. > To use, I've provided two implementations. > 1. In the first, you specify a single group-by column and a stats field: > statsMap = gbc.getStats(tableName, scan, groupByFamily, groupByQualifier, statsFamily, statsQualifier, statsFieldColumnInterpreter); > The result is a map with the Group By column value (as a String) to a GroupByStatsValues object. The GroupByStatsValues object has max,min,sum etc. of the stats column for that group. > 2. The second implementation allows you to specify a list of group-by columns and a stats field. The List of group-by columns is expected to contain lists of {column family, qualifier} pairs. > statsMap = gbc.getStats(tableName, scan, listOfGroupByColumns, statsFamily, statsQualifier, statsFieldColumnInterpreter); > The GroupByStatsValues code is adapted from the Solr Stats component. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira