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

Uwe Schindler commented on LUCENE-6021:
---------------------------------------

Cool.

In the patch you have the abstract cardinality() method on BitSet abstract, 
too. So BitDocIdSet's 2nd ctor does not need to be specialized to FixedBitSet?

> Make FixedBitSet and SparseFixedBitSet share a wider common interface
> ---------------------------------------------------------------------
>
>                 Key: LUCENE-6021
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6021
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 5.0
>
>         Attachments: LUCENE-6021.patch
>
>
> Today, the only common interfaces that these two classes share are Bits and 
> Accountable. I would like to add a BitSet base class that would be both 
> extended by FixedBitSet and SparseFixedBitSet. The idea is to share more code 
> between these two impls and make them interchangeable for more use-cases so 
> that we could just use one or the other based on the density of the data that 
> we are working on.



--
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