I've been reading that ComputingMap only supports identity equality
and not the equals(). Can someone clarify why?
--
guava-...@googlegroups.com.
http://groups.google.com/group/guava-discuss?hl=en
unsubscribe: guava-discus...@googlegroups.com
This list is for discussion; for help, post to Stack Overflow instead:
http://stackoverflow.com/questions/ask
Use the tag "guava".
for each thread ((3 independent threads, each thread working on a
particular type of input)
{
read input
if (correlation-id is already generated for this input)
{
lookup the correlation-id from the cache;
return correlation-id;
}
else
{
generate the correlation-id;
cache it;
return correlation-id;
}
}
~Cleanup thread~
if(correlation id is used 3 times)
{
then clear it from the map
}
Constraints: - The number of input records can go till 500K (for each
input type) so doesn't want to use strong references. - Doesn't want
to generate one-way hashes as of now (i know that if we use one-way
hash then there is no need to cache)
--
guava-...@googlegroups.com.
http://groups.google.com/group/guava-discuss?hl=en
unsubscribe: guava-discus...@googlegroups.com
This list is for discussion; for help, post to Stack Overflow instead:
http://stackoverflow.com/questions/ask
Use the tag "guava".
> > unsubscribe: guava-discus...@googlegroups.com<guava-discuss%2Bunsubscribe@goog legroups.com>