public class HadoopDownloaderOptions extends Object
Constructor and Description |
---|
HadoopDownloaderOptions(String[] args)
Construct with the given arguments
|
Modifier and Type | Method and Description |
---|---|
boolean |
followRedirects() |
InputMode.Parser |
getInputParser() |
org.apache.hadoop.fs.Path[] |
getInputPaths()
Get the input file(s) containing the URLs
|
int |
getNumberOfReducers() |
int |
getNumberOfThreads()
Get the number of threads to use in the mapper.
|
org.apache.hadoop.fs.Path |
getOutputPath() |
long |
getSleep() |
void |
prepare(boolean initial)
Prepare the options
|
boolean |
writeFailures() |
public HadoopDownloaderOptions(String[] args)
args
- the argumentspublic void prepare(boolean initial)
initial
- true if initial setup is being performed; false if inside the
mapperpublic org.apache.hadoop.fs.Path[] getInputPaths() throws IOException
IOException
public org.apache.hadoop.fs.Path getOutputPath()
public int getNumberOfReducers()
public InputMode.Parser getInputParser()
InputMode.Parser
corresponding to the selected mode.public long getSleep()
public boolean followRedirects()
public boolean writeFailures()
public int getNumberOfThreads()
MultithreadedMapper
will be used.