Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-790

ResultRow#getSize() always returns -1

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Later
    • None
    • None
    • core, query

    Description

      just had a failing test due to the fact that my code was
      trying to find out if the query produce any result before
      starting to look over the result entries.

      that didn't work since ResultRow#getSize() always returned -1.

      if fixed my problem by just getting rid of ResultRow#getSize().
      i would suggest to either

      • implement getSize() for 'nothing-found' and/or a few results found
      • drop the method from the OAK interface altogether if we are never
        going to implement
      • add #isEmpty for those cases were someone just wanted to know if a
        query found something without the need of knowing the exact number.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: