This would be very useful to have, but I don't think Lucene has it now. Maybe Solr does? If not, please submit a patch :)
Or, maybe try http://sna-projects.com/kamikaze? I think the focus there is compressed docID sets (in RAM), so I'm not sure you'll find something there... but, maybe? Mike http://blog.mikemccandless.com On Wed, Apr 27, 2011 at 2:28 PM, Nader, John P <john.na...@cengage.com> wrote: > Hello, > > We have an application that relies heavily on caching OpenBitSets for reuse > across multiple threads, and therefore multiple threads. I am looking into > ways for making this both efficient and thread safe. In Java, the Immutable > pattern is the most efficient way to make a cached object thread safe, > because it does not require synchronization overhead. Unfortunately, this > would require an implementation of OpenBitSet with the 'bits' and 'wlen' > fields declared as final, and all mutator methods throwing unsupported. I > can certainly extend the class to override the methods, but the fields cannot > be overridden as final. > > Are there any suggestions of the forum? Possibly other Lucene classes to > solve this problem? Or other solutions? > > I'm just looking for ideas. Thanks. > > -John > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org