public class ParserJob extends NutchTool implements Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
ParserJob.ParserMapper |
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
static String |
SKIP_TRUNCATED |
currentJob, currentJobNum, numJobs, results, status| Constructor and Description |
|---|
ParserJob() |
ParserJob(Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConf() |
Collection<WebPage.Field> |
getFields(Job job) |
static boolean |
isTruncated(String url,
WebPage page)
Checks if the page's content is truncated.
|
static void |
main(String[] args) |
int |
parse(String batchId,
boolean shouldResume,
boolean force) |
Map<String,Object> |
run(Map<String,Object> args)
Runs the tool, using a map of arguments.
|
int |
run(String[] args) |
void |
setConf(Configuration conf) |
getProgress, getStatus, killJob, stopJobpublic static final org.slf4j.Logger LOG
public static final String SKIP_TRUNCATED
public ParserJob()
public ParserJob(Configuration conf)
public static boolean isTruncated(String url, WebPage page)
url - page - true. When it is not, or when
it could be determined, false.public Collection<WebPage.Field> getFields(Job job)
public Configuration getConf()
getConf in interface ConfigurablegetConf in class Configuredpublic void setConf(Configuration conf)
setConf in interface ConfigurablesetConf in class Configuredpublic Map<String,Object> run(Map<String,Object> args) throws Exception
NutchToolpublic int parse(String batchId, boolean shouldResume, boolean force) throws Exception
ExceptionCopyright © 2015 The Apache Software Foundation