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 B7CC2113D7 for ; Thu, 22 May 2014 03:04:52 +0000 (UTC) Received: (qmail 88026 invoked by uid 500); 22 May 2014 03:04:52 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 87790 invoked by uid 500); 22 May 2014 03:04:52 -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 87699 invoked by uid 99); 22 May 2014 03:04:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 03:04:39 +0000 Date: Thu, 22 May 2014 03:04:39 +0000 (UTC) From: "Li Jiajia (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Li Jiajia updated HBASE-11144: ------------------------------ Status: Patch Available (was: Open) > 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: Li Jiajia > Attachments: MultiRowRangeFilter.patch, MultiRowRangeFilter2.patc= h, 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 sorted list and perform fast-forwarding during scan. Thus, the= scan will be quite efficient.=20 -- This message was sent by Atlassian JIRA (v6.2#6252)