public class LinkDbReader extends Configured implements Tool, Closeable
Modifier and Type | Class and Description |
---|---|
static class |
LinkDbReader.LinkDBDumpMapper |
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,
String regex) |
int |
run(String[] args) |
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public LinkDbReader()
public LinkDbReader(Configuration conf, Path directory) throws Exception
Exception
public String[] getAnchors(Text url) throws IOException
IOException
public Inlinks getInlinks(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, String regex) throws IOException
IOException
Copyright © 2015 The Apache Software Foundation