|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.IntWritable>
org.apache.hadoop.examples.BaileyBorweinPlouffe.BbpInputFormat
public static class BaileyBorweinPlouffe.BbpInputFormat
Input format for the BaileyBorweinPlouffe.BbpMapper
.
Keys and values represent offsets and sizes, respectively.
Constructor Summary | |
---|---|
BaileyBorweinPlouffe.BbpInputFormat()
|
Method Summary | |
---|---|
RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.IntWritable> |
createRecordReader(InputSplit generic,
TaskAttemptContext context)
Create a record reader for a given split. |
List<InputSplit> |
getSplits(JobContext context)
Logically split the set of input files for the job. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaileyBorweinPlouffe.BbpInputFormat()
Method Detail |
---|
public List<InputSplit> getSplits(JobContext context)
Each InputSplit
is then assigned to an individual Mapper
for processing.
Note: The split is a logical split of the inputs and the
input files are not physically split into chunks. For e.g. a split could
be <input-file-path, start, offset> tuple. The InputFormat
also creates the RecordReader
to read the InputSplit
.
getSplits
in class InputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.IntWritable>
context
- job configuration.
InputSplit
s for the job.public RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.IntWritable> createRecordReader(InputSplit generic, TaskAttemptContext context)
RecordReader.initialize(InputSplit, TaskAttemptContext)
before
the split is used.
createRecordReader
in class InputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.IntWritable>
generic
- the split to be readcontext
- the information about the task
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |