[ 
https://issues.apache.org/jira/browse/LUCENE-3179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13055063#comment-13055063
 ] 

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: https://issues.apache.org/jira/browse/LUCENE-3179
>             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, TestBitUtil.java, 
> 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: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to