[
https://issues.apache.org/jira/browse/LUCENE-6805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14909665#comment-14909665
]
Adrien Grand commented on LUCENE-6805:
--------------------------------------
If this would be useful for your application, maybe this interface should live
in your application? Then you could either fork or wrap Lucene's bit sets if
you want them to back this interface? I would like to avoid adding more
abstractions if we don't need them in Lucene itself.
Also I think it's fine to just throw UnsupportedOperationExceptions if write
operations are not supported. This is very similar to what collections returned
by Java's Collections.unmodifiable* methods do.
> 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]