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, rungetConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic LinkDbReader()
public LinkDbReader(Configuration conf, Path directory) throws Exception
Exceptionpublic void openReaders()
throws IOException
IOExceptionpublic String[] getAnchors(Text url) throws IOException
IOExceptionpublic Inlinks getInlinks(Text url) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void processDumpJob(String linkdb, String output, String regex) throws IOException, InterruptedException, ClassNotFoundException
protected int process(String line, StringBuilder output) throws Exception
process in class AbstractCheckerExceptionCopyright © 2021 The Apache Software Foundation