git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/data-access/storagehub-webapp/1.0@169381 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
72f8f08cd5
commit
8beac0b024
|
@ -61,7 +61,8 @@ public class VREQueryRetriever implements Callable<List<Item>> {
|
|||
while (it.hasNext())
|
||||
cachedList.add(ItemHandler.getItem(it.nextNode(), Arrays.asList("hl:accounting")));
|
||||
logger.trace("creating objects took {}",System.currentTimeMillis()-start);
|
||||
return cachedList.subList(0, 10);
|
||||
if (cachedList.size()<=10) return cachedList;
|
||||
else return cachedList.subList(0, 10);
|
||||
} catch (Exception e) {
|
||||
logger.error("error querying vre {}",vreFolder.getTitle(),e);
|
||||
throw new RuntimeException(e);
|
||||
|
|
Loading…
Reference in New Issue