Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4166

simplify iterators to avoid type merging juggling when order is not needed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.0SDK
    • Core Java Framework
    • None

    Description

      Users who use getAllIndexedFSs(type) to iterate over all FeatureStructures of a particular type, in no particular order, for types which have subtypes, use the PointerIterator implementation which juggles the collection of iterators for each subtype and "merges" them in the proper order. This is done even when the index type is a BAG. Add an alternative implementation which does the much simpler thing for these cases (where order isn't needed) that avoids the juggling operations and just goes through each index sequentially.

      Attachments

        Activity

          People

            schor Marshall Schor
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: