Package org.apache.nutch.parse
Class ParseSegment
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.util.NutchTool
org.apache.nutch.parse.ParseSegment
- All Implemented Interfaces:
Configurable,Tool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classSends LATENCY_KEY to partition 0 so one reducer merges all TDigests.static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConfiguration property to delete documents that failed to be parsed.static final StringFields inherited from class org.apache.nutch.util.NutchTool
currentJob, currentJobNum, numJobs, results, status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisTruncated(Content content) Checks if the page's content is truncated.static voidvoidintProgrammatic entry point forNutchToolcallers.Methods inherited from class org.apache.nutch.util.NutchTool
getProgress, getStatus, killJob, setConf, stopJobMethods inherited from class org.apache.hadoop.conf.Configured
getConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
SKIP_TRUNCATED
- See Also:
-
DELETE_FAILED_PARSE
Configuration property to delete documents that failed to be parsed. Also used in Fetcher and Indexer.- See Also:
-
-
Constructor Details
-
ParseSegment
public ParseSegment() -
ParseSegment
-
-
Method Details
-
isTruncated
Checks if the page's content is truncated.- Parameters:
content- the responseContent- Returns:
- If the page is truncated
true. When it is not, or when it couldn't be determined,false.
-
parse
-
main
- Throws:
Exception
-
run
-
run
Programmatic entry point forNutchToolcallers.- Specified by:
runin classNutchTool- Parameters:
args- aMapof arguments to be run with the toolcrawlId- a crawl identifier to associate with the tool invocation- Returns:
- Map results object if tool executes successfully otherwise null
- Throws:
Exception- if there is an error during the tool execution
-