Package org.apache.nutch.crawl
Class LinkDbReader
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.util.AbstractChecker
org.apache.nutch.crawl.LinkDbReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Configurable,Tool
Read utility for the LinkDb.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.nutch.util.AbstractChecker
keepClientCnxOpen, stdin, tcpPort, usage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()String[]getAnchors(Text url) getInlinks(Text url) voidstatic voidvoidprotected intprocess(String line, StringBuilder output) voidprocessDumpJob(String linkdb, String output, String regex) intMethods 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
-
Constructor Details
-
LinkDbReader
public LinkDbReader() -
LinkDbReader
- Throws:
Exception
-
-
Method Details
-
init
- Throws:
Exception
-
openReaders
- Throws:
IOException
-
getAnchors
- Throws:
IOException
-
getInlinks
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
processDumpJob
public void processDumpJob(String linkdb, String output, String regex) throws IOException, InterruptedException, ClassNotFoundException -
process
- Specified by:
processin classAbstractChecker- Throws:
Exception
-
main
- Throws:
Exception
-
run
-