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

Split JCasIterable into iterable and iterator parts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0uimaFIT
    • uimaFIT
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: