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

Paul Elschot commented on LUCENE-6805:
--------------------------------------

I had the same similar problem when trying to provide an EliasFanoDocIdSet as a 
BitSet.
I ended up using an UnsupportedOperationException for the methods that modify 
the set.
Perhaps the nextSetBit and prevSetBit methods (and maybe some others) should 
move from BitSet to  Bits to make this easier?

Aside: EliasFanoDocIdSet has meanwhile been removed from trunk (LUCENE-6484), 
there is a version available at LUCENE-5627.


> Add a general purpose readonly interace to BitSet
> -------------------------------------------------
>
>                 Key: LUCENE-6805
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6805
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: 5.0, 5.2
>            Reporter: Selva Kumar
>
> BitSet has many more readonly methods compared to Bits. Similarly, BitSet has 
> many more write methods compared to MutableBits.
> This Jira issue is to add a new ImmutableBits interface to BitSet that 
> includes all ready only methods of BitSet.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to