public class LinkDbReader extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool, Closeable
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
LinkDbReader() |
LinkDbReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path directory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String[] |
getAnchors(org.apache.hadoop.io.Text url) |
Inlinks |
getInlinks(org.apache.hadoop.io.Text url) |
void |
init(org.apache.hadoop.fs.Path directory) |
static void |
main(String[] args) |
void |
processDumpJob(String linkdb,
String output) |
int |
run(String[] args) |
public String[] getAnchors(org.apache.hadoop.io.Text url) throws IOException
IOExceptionpublic Inlinks getInlinks(org.apache.hadoop.io.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 © 2014 The Apache Software Foundation