Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1214B9171 for ; Tue, 14 Feb 2012 14:32:25 +0000 (UTC) Received: (qmail 87590 invoked by uid 500); 14 Feb 2012 14:32:23 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 87548 invoked by uid 500); 14 Feb 2012 14:32:23 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 87538 invoked by uid 99); 14 Feb 2012 14:32:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 14:32:23 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vamshi2105@gmail.com designates 209.85.214.169 as permitted sender) Received: from [209.85.214.169] (HELO mail-tul01m020-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 14:32:18 +0000 Received: by obbta7 with SMTP id ta7so25371obb.14 for ; Tue, 14 Feb 2012 06:31:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=SYUiCDTOTHvUpm5zY0gFZx6hLkU0o9cp7E/QpLbgzXw=; b=srISVDAEIz9hmRCAjNLpXgZ/3tCvkueIvgR/JACLuyvZrzhiumacD19nU7NUZb+KQc MN/SnRdLUEdd8ajqfBpW8SniNj0YYuY5EX/QbIXH/ImS/jrh+cbrEfKkQ/OrNjeqjh8Z mEd+C96exoJQKVLHUs6ZPUrzb++wChPTF7sEI= MIME-Version: 1.0 Received: by 10.182.110.104 with SMTP id hz8mr14967785obb.77.1329229917428; Tue, 14 Feb 2012 06:31:57 -0800 (PST) Received: by 10.60.50.132 with HTTP; Tue, 14 Feb 2012 06:31:57 -0800 (PST) In-Reply-To: References: Date: Tue, 14 Feb 2012 20:01:57 +0530 Message-ID: Subject: Re: how get() works From: Vamshi Krishna To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=f46d0444ea0d0d9d3b04b8ed75ee --f46d0444ea0d0d9d3b04b8ed75ee Content-Type: text/plain; charset=ISO-8859-1 Thank you Doug.. Onemore question is, If a particular region is found by looking at the range handeled by it, How is search performed within that region to find requested rowKey? Is it by linear search or binary search or any other algorithm? Or for every row in that region, is there any hash value stored and hash lookup takes place to get that rowKey's value? what happens really within that region? On Mon, Feb 13, 2012 at 7:35 PM, Doug Meil wrote: > > re: "Now if that RegionServer has multiple > regions on it, how does the request get transfered to a correct region > which has the requested rowKey?" > > See... > > http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HTable.html# > getRegionLocation%28byte[],%20boolean%29 > > As described in Arch/Client in the book, the Hbase client knows all the > regions and the the region boundaries from META. > > > > > On 2/13/12 1:46 AM, "Vamshi Krishna" wrote: > > >Hi all, i have a small basic doubt regarding get() method which is used in > >HTable. From the hbase book, under 8.3.Client section, i understood that, > >when ever client sends a request like get(rowKey) on any htable instance, > >from ROOT and META, it knows the regionserver where the regions holding > >that requested rowKey is present. Now if that RegionServer has multiple > >regions on it, how does the request get transfered to a correct region > >which has the requested rowKey? (will there be again any lookups for it?) > > > >Is it like this: The RegionServer holds the information about all the > >regions it is hosting, so looking at the respective ranges of rows in each > >region a region is selected, and passing that request to that appropriate > >region. Am i correct? if not, correct me. > > > >Onemore question is, If a particular region is found by looking at the > >range handeled by it, How is search performed within that region to find > >requested rowKey? Is it by linear search or binary search or any other > >algorithm? Or for every row in that region, is there any hash value stored > >and hash lookup takes place to get that rowKey's value? what happens > >really within that region? > > > > > >can anybody help, please.. > >-- > >*Regards* > >* > >Vamshi Krishna > >* > > > -- *Regards* * Vamshi Krishna * --f46d0444ea0d0d9d3b04b8ed75ee--