I have a pretty large google Multimap<String,String>
and was looking into ways to reduce the memory usage. In all of the examples I can find people are doing something like:
Multimaps.newSetMultimap(
TDecorators.wrap(new TIntObjectHashMap<Collection<Integer>>()),
new Supplier<Set<Integer>>() {
public Set<Integer> get() {
return TDecorators.wrap(new TIntHashSet());
}
});
which works for a Multimap <Integer,Integer>
, is it possible to use Trove to wrap a <String,String>
?
Incase anyone is interested in the future I went with http://code.google.com/p/jdbm2/ to write the hash map to the filesystem.
Trove4j doesn't contain hashmap for string-to-string.
See http://trove4j.sourceforge.net/javadocs/gnu/trove/map/hash/package-summary.html