public class LinkDbReader extends AbstractChecker implements 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() |
String[] |
getAnchors(Text url) |
Inlinks |
getInlinks(Text url) |
void |
init(Path directory) |
static void |
main(String[] args) |
void |
openReaders() |
protected int |
process(String line,
StringBuilder output) |
void |
processDumpJob(String linkdb,
String output,
String regex) |
int |
run(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 Exception
Exception
public void openReaders() throws IOException
IOException
public String[] getAnchors(Text url) throws IOException
IOException
public Inlinks getInlinks(Text url) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void processDumpJob(String linkdb, String output, String regex) throws IOException, InterruptedException, ClassNotFoundException
protected int process(String line, StringBuilder output) throws Exception
process
in class AbstractChecker
Exception
Copyright © 2021 The Apache Software Foundation