Skip to content

Commit

Permalink
exploring #150
Browse files Browse the repository at this point in the history
  • Loading branch information
dsukhoroslov committed Jan 24, 2018
1 parent 463be21 commit 9fddcc9
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,13 +436,16 @@ public java.util.Collection<String> getDocumentUris(String pattern, String prope

private java.util.Collection<String> getUris(String pattern, String properties) throws Exception {
Properties props = propsFromString(properties);
if (props == null) {
props = new Properties();
}
props.setProperty(pn_document_headers, String.valueOf(DocumentAccessor.HDR_URI));
ResultCollection uris = (ResultCollection) docManager.getDocuments(pattern, props);
List<String> result = new ArrayList<>(uris.size());
Iterable<DocumentAccessor> uris = (Iterable<DocumentAccessor>) docManager.getDocuments(pattern, props);
List<String> result = new ArrayList<>(); //uris.size()
for (DocumentAccessor doc: uris) {
result.add(doc.getUri());
}
uris.close();
//uris.close();
logger.debug("getUris; returning {} uris", result);
return result;
}
Expand Down

0 comments on commit 9fddcc9

Please sign in to comment.