Revision 47231
Added by Alessia Bardi almost 7 years ago
EHRIIteratorFactory.java | ||
---|---|---|
3 | 3 |
import java.io.IOException; |
4 | 4 |
import java.net.URISyntaxException; |
5 | 5 |
import java.util.Iterator; |
6 |
import java.util.List; |
|
7 | 6 |
|
8 | 7 |
import eu.dnetlib.rmi.data.CollectorServiceException; |
9 | 8 |
import org.springframework.beans.factory.annotation.Autowired; |
... | ... | |
22 | 21 |
final String baseUrl, |
23 | 22 |
final String suffix) { |
24 | 23 |
try { |
25 |
List<String> ids = ehriGraphQLClient.collect(baseURLIdentifiers, queryIdentifiers);
|
|
24 |
Iterator<String> ids = ehriGraphQLClient.collect(baseURLIdentifiers, queryIdentifiers);
|
|
26 | 25 |
return new EHRIIterator(ids, baseUrl, suffix); |
27 | 26 |
} catch (CollectorServiceException | IOException | URISyntaxException e) { |
28 | 27 |
throw new RuntimeException(e); |
Also available in: Unified diff
Let's use Iterators instead of Lists