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

Add a set iterator to SentinelIntSet

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 4.3
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I'm working on code that needs a hash based int Set. It will need to iterate over the values, but SentinalIntSet doesn't have this utility feature. It should be pretty easy to add.

      FYI this is an out-growth of a question I posed to the dev list, examining 3 different int hash sets out there: SentinalIntSet, IntHashSet (in Lucene facet module) and the 3rd party IntOpenHashSet (HPPC) – see http://lucene.472066.n3.nabble.com/IntHashSet-SentinelIntSet-SortedIntDocSet-td4037516.html I decided to go for SentinalIntSet because it's already in Lucene-core, adding the method I need should be easy, and it has a nice lean implementation.

        Attachments

        1. SentinelIntSet_docs.patch
          7 kB
          David Smiley
        2. LUCENE-4881_SentinalIntSet_int_iterator.patch
          9 kB
          David Smiley

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: