public class LinkDbReader extends Configured implements Tool, Closeable
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| 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 |
processDumpJob(String linkdb,
String output) |
int |
run(String[] args) |
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic LinkDbReader()
public LinkDbReader(Configuration conf, Path directory) throws Exception
Exceptionpublic 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) throws IOException
IOExceptionCopyright © 2012 The Apache Software Foundation