Joerg Hoh created OAK-10956:
-------------------------------
Summary: Improve Row.getPath()
Key: OAK-10956
URL: https://issues.apache.org/jira/browse/OAK-10956
Project: Jackrabbit Oak
Issue Type: Improvement
Components: indexing
Reporter: Joerg Hoh
Assuming that I have this code to read just the path of all search results:
{noformat}
List<String> foundPaths = new ArrayList<>();
QueryResult qr = query.execute(...);
RowIterator iter = qr.getRows();
while (iter.hasNext) {
Row r = iter.nextRow();
foundPaths.add(r.getPath());
}
{noformat}
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]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)