public class PaginatedCkanFetcher extends SimpleCkanFetcher implements Fetcher
| Modifier and Type | Field and Description |
|---|---|
private int |
DEFAULT_TIMEOUT |
private static org.slf4j.Logger |
LOGGER |
private int |
PAGESIZE |
private int |
timeout |
checkForUriType, CKAN_JSON_OBJECT_MIME_TYPE, dataDirectory, mapper, NEWLINE_CHAR| Constructor and Description |
|---|
PaginatedCkanFetcher() |
PaginatedCkanFetcher(int timeout)
Time out for the Ckan Client
|
| Modifier and Type | Method and Description |
|---|---|
File |
fetch(org.dice_research.squirrel.data.uri.CrawleableUri uri,
Delayer delayer)
|
protected void |
fetchDataset(eu.trentorise.opendata.jackan.CkanClient client,
int pageSize,
int offSet,
OutputStream out) |
static void |
main(String[] args) |
close, fetchDataset, getDataDirectory, isCheckForUriType, setCheckForUriType, setDataDirectoryprivate static final org.slf4j.Logger LOGGER
private final int DEFAULT_TIMEOUT
private int timeout
private final int PAGESIZE
public PaginatedCkanFetcher(int timeout)
timeout - public PaginatedCkanFetcher()
public File fetch(org.dice_research.squirrel.data.uri.CrawleableUri uri, Delayer delayer)
FetcherDelayer, stores it and returns a
File object pointing to the stored data. If an error occurs,
null is returned.fetch in interface Fetcherfetch in class SimpleCkanFetcheruri - The URI from which data should be fetched.File object pointing to the downloaded data or null
if an error occurred.protected void fetchDataset(eu.trentorise.opendata.jackan.CkanClient client,
int pageSize,
int offSet,
OutputStream out)
public static void main(String[] args) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionCopyright © 2017–2020. All rights reserved.