org.apache.nutch.crawl
Class Injector
java.lang.Object
org.apache.hadoop.util.ToolBase
org.apache.nutch.crawl.Injector
- All Implemented Interfaces:
- Configurable, Tool
public class Injector
- extends ToolBase
This class takes a flat file of URLs and adds them to the of pages to be
crawled. Useful for bootstrapping the system.
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Fields inherited from class org.apache.hadoop.util.ToolBase |
conf |
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
Injector
public Injector()
Injector
public Injector(Configuration conf)
inject
public void inject(Path crawlDb,
Path urlDir)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
run
public int run(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2006 The Apache Software Foundation