Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-1166

JCR2SPI does not provide actual size on RangeIterator.getSize()

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: jackrabbit-jcr2spi
    • Labels:
      None

      Description

      Currently, JCR2SPI always returns -1 on RangeIterator.getSize().

      This return value is legal (meaning "unknown"), but may cause clients to simply iterate through the whole list when what they really want is simply the count.

      Use case:

      "The use case is to count the number of members of a NT_FOLDER without having to open up the NT_FOLDER and count all the members (and I assume load them into memory) "

      To make this happen we probably need to move away from simple Iterators on the SPI level, and put quite some additional work into JCR2SPI.

      Feedback appreciated.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            angela
            Reporter:
            Julian Reschke
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development