jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1418) Redesign NodeInfo.getReferences()
Date Tue, 26 Feb 2008 10:07:51 GMT
Redesign NodeInfo.getReferences()

                 Key: JCR-1418
                 URL: https://issues.apache.org/jira/browse/JCR-1418
             Project: Jackrabbit
          Issue Type: Improvement
          Components: jackrabbit-spi
    Affects Versions: 1.4
            Reporter: Marcel Reutegger
            Priority: Minor

The method returns an array of PropertyIds. When there are lots of references this may become
an problem. As with any other return value that potentially is large we should return an iterator.

I suggest to redesign the handling of references in line with recent discussions how child
infos are handled.

- A NodeInfo implementation must either return the complete list of PropertyIds or null if
it does not want to return the PropertyIds at that time.
- Introduce a new method: Iterator<PropertyId> RepositoryService.getReferences(SessionInfo,

This has the following advantages:

- loading of references can be delayed until it is really needed
- large collections of references can be streamed through the SPI

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message