hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Groschupf ...@101tec.com>
Subject Re: MapFile.get() has a bug?
Date Tue, 28 Nov 2006 06:18:42 GMT
Hi,

Aren't keys in a map file unique? I'm surprised that you able to  
write such a file.

Stefan

On 27.11.2006, at 22:15, Feng Jiang wrote:

> Hi all,
>
> For example, I have a MapFile, which is like:
>
> K -> V
> 1 -> 1
> 1 -> 2
> 1 -> 3
> 2 -> 1
> 2 -> 2
> 2 -> 3
> 3 -> 1
> 3 -> 2
> 3 -> 3
>
> when i call mapFile.get(2, value), the value will be filled as 2,  
> not 1.
>
> Is is a bug of MapFile? I think the reader should be positioned at  
> the first
> entry of the named key. am I right?
>
> Thanks and best regards,
>
> Feng Jiang

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101tec Inc.
search tech for web 2.1
Menlo Park, California
http://www.101tec.com




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message