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 D4B35CF91 for ; Sat, 6 Dec 2014 05:23:12 +0000 (UTC) Received: (qmail 27431 invoked by uid 500); 6 Dec 2014 05:23:12 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 27387 invoked by uid 500); 6 Dec 2014 05:23:12 -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 27375 invoked by uid 99); 6 Dec 2014 05:23:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Dec 2014 05:23:12 +0000 Date: Sat, 6 Dec 2014 05:23:12 +0000 (UTC) From: "saurabh agarwal (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11144) Filter to support scan multiple row key ranges MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-11144?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D142= 36608#comment-14236608 ]=20 saurabh agarwal commented on HBASE-11144: ----------------------------------------- This is very useful in our case. Are you planning to release this in next v= ersion of HBase? > Filter to support scan multiple row key ranges > ---------------------------------------------- > > Key: HBASE-11144 > URL: https://issues.apache.org/jira/browse/HBASE-11144 > Project: HBase > Issue Type: Improvement > Components: Filters > Reporter: Jiajia Li > Attachments: HBASE_11144_4.patch, MultiRowRangeFilter.patch, Mult= iRowRangeFilter2.patch, MultiRowRangeFilter3.patch > > > HBase is quite efficient when scanning only one small row key range. If u= ser needs to specify multiple row key ranges in one scan, the typical solut= ions are: 1. through FilterList which is a list of row key Filters, 2. usin= g the SQL layer over HBase to join with two table, such as hive, phoenix et= c. However, both solutions are inefficient. Both of them can=E2=80=99t util= ize the range info to perform fast forwarding during scan which is quite ti= me consuming. If the number of ranges are quite big (e.g. millions), join i= s a proper solution though it is slow. However, there are cases that user w= ants to specify a small number of ranges to scan (e.g. <1000 ranges). Both = solutions can=E2=80=99t provide satisfactory performance in such case.=20 > We provide this filter (MultiRowRangeFilter) to support such use case (sc= an multiple row key ranges), which can construct the row key ranges from us= er specified list and perform fast-forwarding during scan. Thus, the scan w= ill be quite efficient.=20 -- This message was sent by Atlassian JIRA (v6.3.4#6332)