public class LinkDbReader extends Configured implements Tool, java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
LinkDbReader.LinkDBDumpMapper |
| 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) |
void |
processDumpJob(java.lang.String linkdb,
java.lang.String output,
java.lang.String regex) |
int |
run(java.lang.String[] args) |
getConf, 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.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2017 The Apache Software Foundation