lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3179) OpenBitSet.prevSetBit()
Date Sun, 26 Jun 2011 12:42:47 GMT


Michael McCandless commented on LUCENE-3179:

Thanks for fixing these Uwe!

I actually don't like how "generic" OBS has become... ie, that all methods have an int and
long version, that the OBS doesn't "know" how many bits it holds (I added this field recently,
but only for assertions), that some methods "grow" the number of bits and others don't, some
methods accept out-of-bounds indices (negative and > numBits), etc.  I think it's grown
to accommodate too many users.... but I'm not sure what we should do to fix this.  Maybe factor
out (yet another) bit set impl that doesn't grow, knows its number of bits, has these fast
getNext/getPrev set bit methods, operates only on int indices, etc.

> OpenBitSet.prevSetBit()
> -----------------------
>                 Key: LUCENE-3179
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Paul Elschot
>            Assignee: Paul Elschot
>            Priority: Minor
>             Fix For: 3.3, 4.0
>         Attachments: LUCENE-3179-fix.patch, LUCENE-3179-fix.patch, LUCENE-3179.patch,
LUCENE-3179.patch, LUCENE-3179.patch,, TestOpenBitSet.patch
> Find a previous set bit in an OpenBitSet.
> Useful for parent testing in nested document query execution LUCENE-2454 .

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