You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Stephen Allen (Resolved) (JIRA)" <ji...@apache.org> on 2011/10/28 17:35:32 UTC

[jira] [Resolved] (JENA-76) Resourceutils.renameResource uses Iterator.remove() to make changes - not all iterators support .remove.

     [ https://issues.apache.org/jira/browse/JENA-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Allen resolved JENA-76.
-------------------------------

    Resolution: Fixed

Fixed in revision 1190400.
                
> Resourceutils.renameResource uses Iterator.remove() to make changes - not all iterators support .remove.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JENA-76
>                 URL: https://issues.apache.org/jira/browse/JENA-76
>             Project: Jena
>          Issue Type: Bug
>          Components: Jena
>            Reporter: Andy Seaborne
>            Assignee: Stephen Allen
>         Attachments: JENA-76-r1185803.patch, JENA-76-r1185845.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira