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

Split JCasIterable into iterable and iterator parts

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0uimaFIT
    • Component/s: uimaFIT
    • Labels:
      None

      Description

      The JCasIterable is an Iterable and an Iterator at the same time. The iterator() method returns just "this". This goes against the expectation that an Iterable should return a fresh iterator when iterator() is called.

      JCasIterable should therefore be split. The JCasIterable should only be creatable with descriptions.

      Calling iterator should create a new JCasIterator which then is based on concrete reader and AE instances.

        Attachments

          Activity

            People

            • Assignee:
              rec Richard Eckart de Castilho
              Reporter:
              rec Richard Eckart de Castilho
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: