In the MapFile.Writer.checkKey() method, identical key is ok, unless you append a new key which is "less" than the last key.
I did have such a file. but i am concerning that why the reader is positioned at the first entry of that named key? best wishes, Feng On 11/28/06, Stefan Groschupf <[EMAIL PROTECTED]> wrote:
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