Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-76

Resourceutils.renameResource uses Iterator.remove() to make changes - not all iterators support .remove.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • Jena 2.11.0
    • Jena
    • None

    Description

      Resourceutils.renameResource uses Iterator.remove() to make changes. TDB does not support Iterator.remove

      Instead, renameResource could grab a block (say, 1000) items, rename them and loop on blocks of 1000. This way, the iterator is terminated before updates are done. The nature of the rename operation means that the find iterator is executed until no resources are found so this batching mechanism does not need to need to track what has and has not been found - just repeat until less than 1000 items found.

      Attachments

        1. JENA-76-r1185845.patch
          5 kB
          Stephen Allen
        2. JENA-76-r1185803.patch
          5 kB
          Stephen Allen

        Activity

          People

            sallen Stephen Allen
            andy Andy Seaborne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: