mapred
Class RecordInputFormat
java.lang.Object
org.apache.hadoop.mapred.FileInputFormat<org.apache.hadoop.io.LongWritable,Record>
mapred.RecordInputFormat
- All Implemented Interfaces:
- org.apache.hadoop.mapred.InputFormat<org.apache.hadoop.io.LongWritable,Record>
public class RecordInputFormat
- extends org.apache.hadoop.mapred.FileInputFormat<org.apache.hadoop.io.LongWritable,Record>
Provides customized input format for MapReduce counting jobs.
- Author:
- vohuudtr
Nested classes/interfaces inherited from class org.apache.hadoop.mapred.FileInputFormat |
org.apache.hadoop.mapred.FileInputFormat.Counter |
Fields inherited from class org.apache.hadoop.mapred.FileInputFormat |
LOG |
Method Summary |
org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,Record> |
getRecordReader(org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf conf,
org.apache.hadoop.mapred.Reporter reporter)
|
Methods inherited from class org.apache.hadoop.mapred.FileInputFormat |
addInputPath, addInputPaths, getInputPathFilter, getInputPaths, getSplits, setInputPathFilter, setInputPaths, setInputPaths |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordInputFormat
public RecordInputFormat()
getRecordReader
public org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,Record> getRecordReader(org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf conf,
org.apache.hadoop.mapred.Reporter reporter)
throws java.io.IOException
- Specified by:
getRecordReader
in interface org.apache.hadoop.mapred.InputFormat<org.apache.hadoop.io.LongWritable,Record>
- Specified by:
getRecordReader
in class org.apache.hadoop.mapred.FileInputFormat<org.apache.hadoop.io.LongWritable,Record>
- Throws:
java.io.IOException