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

Improve Row.getPath()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • indexing, query

    Description

      Assuming that I have this code to read just the path of all search results:

      List<String> foundPaths = new ArrayList<>();
      QueryResult qr = query.execute(...);
      RowIterator iter = qr.getRows();
      while (iter.hasNext) {
        Row r = iter.nextRow();
        foundPaths.add(r.getPath());
      }
      

      We have found that r.getPath() still resolves a Tree, while r.getValue("jcr:path").toString() returns the same result, but without resolving a Tree.

      I suggest that we change the implementation of getPath() (without parameters) to use the same approach; this would avoid quite some repository overhead.

      //CC angela

      Attachments

        Activity

          People

            Unassigned Unassigned
            joerghoh Joerg Hoh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: