org.apache.nutch.crawl
Class LinkDbReader
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.crawl.LinkDbReader
- All Implemented Interfaces:
- Closeable, Configurable, Tool
public class LinkDbReader
- extends Configured
- implements Tool, Closeable
.
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
LinkDbReader
public LinkDbReader()
LinkDbReader
public LinkDbReader(Configuration conf,
Path directory)
throws Exception
- Throws:
Exception
init
public void init(Path directory)
throws Exception
- Throws:
Exception
getAnchors
public String[] getAnchors(Text url)
throws IOException
- Throws:
IOException
getInlinks
public Inlinks getInlinks(Text url)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
processDumpJob
public void processDumpJob(String linkdb,
String output)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
run
public int run(String[] args)
throws Exception
- Specified by:
run
in interface Tool
- Throws:
Exception
Copyright © 2006 The Apache Software Foundation