hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Rawson <ryano...@gmail.com>
Subject Re: Question about the hbase source code
Date Mon, 28 Dec 2009 02:57:55 GMT
We dont use the standard hashing function, but one that exhibits
fairly good properties of uniform output. This reduces the chance of a
conflict, so while not impossible, it is unlikely.

On Sun, Dec 27, 2009 at 6:19 PM, Jeff Zhang <zjffdu@gmail.com> wrote:
> Hi all,
>
> I am interested to know the internal implementation of hbase, so I'd like to
> deep into the source source.
> I found that the variable onlineRegions in HRegionServer is a map type and
> the key is the hashcode of region name. So wont't it cause conflict ? I mean
> tow region name may have the same hashcode. Or does the hash code
> implemetation guarantee that two region name won't have the same hashcode ?
>
> Thank you
>
> Jeff Zhnag
>

Mime
View raw message