org.apache.nutch.fetcher
Class Fetcher.InputFormat
java.lang.Object
org.apache.hadoop.mapred.FileInputFormat<K,V>
org.apache.hadoop.mapred.SequenceFileInputFormat<Text,CrawlDatum>
org.apache.nutch.fetcher.Fetcher.InputFormat
- All Implemented Interfaces:
- InputFormat<Text,CrawlDatum>
- Enclosing class:
- Fetcher
public static class Fetcher.InputFormat
- extends SequenceFileInputFormat<Text,CrawlDatum>
Methods inherited from class org.apache.hadoop.mapred.FileInputFormat |
addInputPath, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, isSplitable, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Fetcher.InputFormat
public Fetcher.InputFormat()
getSplits
public InputSplit[] getSplits(JobConf job,
int nSplits)
throws IOException
- Don't split inputs, to keep things polite.
- Specified by:
getSplits
in interface InputFormat<Text,CrawlDatum>
- Overrides:
getSplits
in class FileInputFormat<Text,CrawlDatum>
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation