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
IOException
public Inlinks getInlinks(org.apache.hadoop.io.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) throws IOException
IOException
Copyright © 2014 The Apache Software Foundation