public class DataSetIterator extends Object implements Iterator<eu.europeana.cloud.common.model.DataSet>
DataSetServiceClient.getDataSetIteratorForProvider(String) method.
Iterator obtains DataSet objects in chunks, obtaining new chunk only
if needed, inside overridden Iterator class methods.| Constructor and Description |
|---|
DataSetIterator(DataSetServiceClient client,
String providerId)
Creates instance of DataSetIterator.
|
public DataSetIterator(DataSetServiceClient client, String providerId)
client - properly initialised client for internal communication with
MCS server (required)providerId - id of the provider (required)public boolean hasNext()
true if the iteration has more elements.
The first call to this method might take longer time than the others, as
there might be a need to obtain first chunk of data.public eu.europeana.cloud.common.model.DataSet next()
next in interface Iterator<eu.europeana.cloud.common.model.DataSet>NoSuchElementException - if there are no more elementsCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.