Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5277

Modify FixedBitSet copy constructor to take numBits to allow grow/shrink the new bitset

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.6, 6.0
    • core/index
    • None
    • New, Patch Available

    Description

      FixedBitSet copy constructor is redundant the way it is now – one can call FBS.clone() to achieve that (and indeed, no code in Lucene calls this ctor). I think it will be useful to add a numBits parameter to that method to allow growing/shrinking the new bitset, while copying all relevant bits from the passed one.

      Attachments

        1. LUCENE-5277.patch
          3 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            shaie Shai Erera
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: