Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2118

spi-rmi query row iterator returns -1 for size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • sandbox
    • None

    Description

      When running queries over spi-rmi, the returned size for child node info and query row iterators is always -1. This doesn't matter too much for the child node infos, as the only place that it is used iterates over all nodes anyway. However, for a query it would be nice to know how many results there are; the approximation that lazy iterators make is fine.

      The problem appears to be the use of the IteratorHelper in ServerQueryInfo. Since it is not a range iterator, the wrapping ServerIterator cannot retrieve the number of results. I suggest to replace the helper by a RangeIteratorDecorator from jcr-commons.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lankvelt Frank van Lankvelt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: