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 EEAF510738 for ; Mon, 29 Dec 2014 05:58:13 +0000 (UTC) Received: (qmail 32121 invoked by uid 500); 29 Dec 2014 05:58:14 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 32074 invoked by uid 500); 29 Dec 2014 05:58:14 -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 32062 invoked by uid 99); 29 Dec 2014 05:58:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2014 05:58:14 +0000 Date: Mon, 29 Dec 2014 05:58:13 +0000 (UTC) From: "ramkrishna.s.vasudevan (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= 59865#comment-14259865 ]=20 ramkrishna.s.vasudevan commented on HBASE-11144: ------------------------------------------------ Also this RowRange is quite similar to Phoenix's KeyRange.java. https://git-wip-us.apache.org/repos/asf?p=3Dphoenix.git;a=3Dblob;f=3Dphoeni= x-core/src/main/java/org/apache/phoenix/query/KeyRange.java;h=3Dafcc7413aa7= 053cf3d40098b3a449509702c4ce9;hb=3Dd6a4caf5cff651cfef3602c93e3fcafe62bced9b > 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 > Assignee: Jiajia Li > Attachments: HBASE_11144_4.patch, HBASE_11144_V5.patch, HBASE_111= 44_V6.patch, HBASE_11144_V7.patch, MultiRowRangeFilter.patch, MultiRowRange= Filter2.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)