Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

crazy hashmap

6 views
Skip to first unread message

Huan-Hua Chye

unread,
Mar 22, 2001, 9:04:49 PM3/22/01
to
does anyone know why a hashmap would not retain its mappings through
different iterations of the same method? we have a hashmap that is an
attribute of the class, and the first time we look up the data in the
hashmap it is there, but then when we look it up again in another
iteration of the same method, it is gone. we're not using remove
anywhere, and we're not clobbering the value as far as we can tell...
what's wrong? any clues/answers/ideas?

thanks
huan-hua

Westley Weimer

unread,
Mar 27, 2001, 10:21:05 PM3/27/01
to
Huan-Hua Chye <ch...@ocf.berkeley.edu> wrote:
> does anyone know why a hashmap would not retain its mappings through
> different iterations of the same method?

It's probably way too late for you to care about this now, but I keep
seeing this unanswered message everytime I scan this group so I figured I
would give it a shot.

> we have a hashmap that is an attribute of the class,

Are you using C++ or Java?

> and the first time we look up the data in the hashmap it is there, but
> then when we look it up again in another iteration of the same method, it
> is gone.

If you make it an attribute of a class ... each instance of that class has
a different hashmap. So if you give each expression node a hashmap, each
one gets a different hashmap. If you want all instances of a class to share
the same hashmap, there are ways to do that.

If not, we could probably help you if you posted the source code containing
the mysterious lookup that fails the second time.

- Wes

pww19...@gmail.com

unread,
Apr 1, 2015, 9:35:05 PM4/1/15
to
在 2001年3月23日星期五 UTC+8上午10:08:06,Huan-Hua Chye写道:
The core of the core of the big data solutions -- Map
Download:
https://sourceforge.net/projects/pwwhashmap/files
0 new messages