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, run
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public LinkDbReader()
public LinkDbReader(Configuration conf, Path directory) throws java.lang.Exception
java.lang.Exception
public void init(Path directory) throws java.lang.Exception
java.lang.Exception
public java.lang.String[] getAnchors(Text url) throws java.io.IOException
java.io.IOException
public Inlinks getInlinks(Text url) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public 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.IOException
java.lang.InterruptedException
java.lang.ClassNotFoundException
protected int process(java.lang.String line, java.lang.StringBuilder output) throws java.lang.Exception
process
in class AbstractChecker
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2018 The Apache Software Foundation