Stéphane Campinas 2012-05-20, 12:08
As its name implies, it controls global caching.
Can you try using one HFile ?
On May 20, 2012, at 5:08 AM, Stéphane Campinas <[EMAIL PROTECTED]> wrote:
> I use in my application a HFile as a dictionary, and therefore I have multiple hfiles.
> I would like to know why the reference to the globalBlockCache is static ? Having it static prevents me from using multiple HFiles with the caching enabled.
> Indeed, it seems that a first call to #seekTo() loads a block of hfile1 in the cache. Another call to #seekTo(), but this time on hfile2, fails to find the key I want.
> Is there something I am missing ? Or do I have to use a single hfile ?