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

Add subset method to BitVector

Details

    • New Feature
    • Status: Reopened
    • Trivial
    • Resolution: Fixed
    • 2.9
    • 2.9
    • core/other
    • None
    • New, Patch Available

    Description

      Recently I needed the ability to efficiently compute subsets of a BitVector. The method is:
      public BitVector subset(int start, int end)
      where "start" is the starting index, inclusive and "end" is the ending index, exclusive.

      Attached is a patch including the subset method as well as relevant unit tests.

      Attachments

        1. LUCENE-1605.txt
          3 kB
          Jeremy Volkman

        Activity

          People

            mikemccand Michael McCandless
            jvolkman Jeremy Volkman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: