[infinispan-dev] TwoWayKey2StringMapper and keys which are never stored

Sanne Grinovero sanne.grinovero at gmail.com
Thu Aug 12 05:33:26 EDT 2010


Hello,
While implementing a TwoWayKey2StringMapper for the Lucene Directory I
noticed that
it's mandatory to implement two-way conversions also for keys which
I'm not going to ever store.

This directory has some different keys types, some need to be
eventually storable (if a Store is configured),
while some others are always handled with the Flag.SKIP_CACHE_STORE
and should never be stored.

Still if I don't implement conversion of this type, I get a stacktrace
about this type being not supported by
the LuceneKey2StringMapper during rehashing.
I'm not able to grasp the reason for this two-way key conversion to be
needed for rehashing - I can only guess that you have good reasons for
that - but I'm totally lost at why this implementation is being called
for keys which I actually want to make sure they are never stored.

Could this limitation be removed, or am I mandated to use two
differently configured caches to store this information?

Regards,
Sanne


More information about the infinispan-dev mailing list