org.apache.nutch.crawl
Class LinkDbReader
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.nutch.crawl.LinkDbReader
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
public class LinkDbReader
- extends org.apache.hadoop.conf.Configured
- implements org.apache.hadoop.util.Tool, org.apache.hadoop.io.Closeable
.
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary |
LinkDbReader()
|
LinkDbReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path directory)
|
Methods inherited from class org.apache.hadoop.conf.Configured |
getConf, setConf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
LOG
public static final org.apache.commons.logging.Log LOG
LinkDbReader
public LinkDbReader()
LinkDbReader
public LinkDbReader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path directory)
throws Exception
- Throws:
Exception
init
public void init(org.apache.hadoop.fs.Path directory)
throws Exception
- Throws:
Exception
getAnchors
public String[] getAnchors(org.apache.hadoop.io.Text url)
throws IOException
- Throws:
IOException
getInlinks
public Inlinks getInlinks(org.apache.hadoop.io.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 org.apache.hadoop.util.Tool
- Throws:
Exception
Copyright © 2006 The Apache Software Foundation