public class LinkDbReader extends AbstractChecker implements java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
LinkDbReader.LinkDBDumpMapper |
keepClientCnxOpen, stdin, tcpPort, usage| Constructor and Description |
|---|
LinkDbReader() |
LinkDbReader(Configuration conf,
Path directory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.String[] |
getAnchors(Text url) |
Inlinks |
getInlinks(Text url) |
void |
init(Path directory) |
static void |
main(java.lang.String[] args) |
protected int |
process(java.lang.String line,
java.lang.StringBuilder output) |
void |
processDumpJob(java.lang.String linkdb,
java.lang.String output,
java.lang.String regex) |
int |
run(java.lang.String[] args) |
getProtocolOutput, parseArgs, processSingle, processStdin, processTCP, rungetConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic LinkDbReader()
public LinkDbReader(Configuration conf, Path directory) throws java.lang.Exception
java.lang.Exceptionpublic void init(Path directory) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String[] getAnchors(Text url) throws java.io.IOException
java.io.IOExceptionpublic Inlinks getInlinks(Text url) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void processDumpJob(java.lang.String linkdb,
java.lang.String output,
java.lang.String regex)
throws java.io.IOException,
java.lang.InterruptedException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.InterruptedExceptionjava.lang.ClassNotFoundExceptionprotected int process(java.lang.String line,
java.lang.StringBuilder output)
throws java.lang.Exception
process in class AbstractCheckerjava.lang.Exceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2019 The Apache Software Foundation