uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] [Created] (UIMA-4166) simplify iterators to avoid type merging juggling when order is not needed
Date Mon, 05 Jan 2015 22:20:34 GMT
Marshall Schor created UIMA-4166:
------------------------------------

             Summary: simplify iterators to avoid type merging juggling when order is not
needed
                 Key: UIMA-4166
                 URL: https://issues.apache.org/jira/browse/UIMA-4166
             Project: UIMA
          Issue Type: Improvement
          Components: Core Java Framework
            Reporter: Marshall Schor
            Assignee: Marshall Schor
            Priority: Minor
             Fix For: 2.7.0SDK


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message