Package org.apache.nutch.parse
Class ParserChecker
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.util.AbstractChecker
org.apache.nutch.parse.ParserChecker
- All Implemented Interfaces:
Configurable,Tool
Parser checker, useful for testing parser. It also accurately reports
possible fetching and parsing failures and presents protocol status signals
to aid debugging. The tool enables us to retrieve the following data from any
url:
contentType: The URLContenttype.signature: Digest is used to identify pages (like unique ID) and is used to remove duplicates during the dedup procedure. It is calculated usingMD5SignatureorTextProfileSignature.Version: FromParseData.Status: FromParseData.Title: of the URLOutlinks: associated with the URLContent Metadata: such as X-AspNet-Version, Date, Content-length, servedBy, Content-Type, Cache-Control, etc.Parse Metadata: such as CharEncodingForConversion, OriginalCharEncoding, language, etc.ParseText: The page parse text which varies in length depdnecing oncontent.lengthconfiguration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected Stringprotected URLNormalizersFields inherited from class org.apache.nutch.util.AbstractChecker
keepClientCnxOpen, stdin, tcpPort, usage -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.nutch.util.AbstractChecker
getProtocolOutput, parseArgs, processSingle, processStdin, processTCP, runMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods 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
-
normalizers
-
dumpText
protected boolean dumpText -
followRedirects
protected boolean followRedirects -
checkRobotsTxt
protected boolean checkRobotsTxt -
metadata
-
forceAsContentType
-
-
Constructor Details
-
ParserChecker
public ParserChecker()
-
-
Method Details
-
run
- Throws:
Exception
-
process
- Specified by:
processin classAbstractChecker- Throws:
Exception
-
main
- Throws:
Exception
-