lucene-dev mailing list archives

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

    [ 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message