lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3280) Add new bit set impl for caching filters
Date Fri, 08 Jul 2011 20:57:16 GMT


Michael McCandless updated LUCENE-3280:

    Attachment: LUCENE-3280.patch

New patch, renaming to FixedBitSet, adding test (adapted from TestOBS's), adding getBits,
hashCode, equals.

I think it's ready to commit!

> Add new bit set impl for caching filters
> ----------------------------------------
>                 Key: LUCENE-3280
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 3.4, 4.0
>         Attachments: LUCENE-3280.patch, LUCENE-3280.patch
> I think OpenBitSet is trying to satisfy too many audiences, and it's
> confusing/error-proned as a result.  It has int/long variants of many
> methods.  Some methods require in-bound access, others don't; of those
> others, some methods auto-grow the bits, some don't.  OpenBitSet
> doesn't always know its numBits.
> I'd like to factor out a more "focused" bit set impl whose primary
> target usage is a cached Lucene Filter, ie a bit set indexed by docID
> (int, not long) whose size is known and fixed up front (backed by
> final long[]) and is always accessed in-bounds.

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message