public static class MultiFileWordCount.MultiFileLineRecordReader extends Object implements RecordReader<MultiFileWordCount.WordOffset,Text>
MultiFileSplit
, which encapsulates several
files, and no file is divided.构造器和说明 |
---|
MultiFileWordCount.MultiFileLineRecordReader(Configuration conf,
MultiFileSplit split) |
限定符和类型 | 方法和说明 |
---|---|
void |
close()
Close this
InputSplit to future operations. |
MultiFileWordCount.WordOffset |
createKey()
Create an object of the appropriate type to be used as a key.
|
Text |
createValue()
Create an object of the appropriate type to be used as a value.
|
long |
getPos()
Returns the current position in the input.
|
float |
getProgress()
How much of the input has the
RecordReader consumed i.e. |
boolean |
next(MultiFileWordCount.WordOffset key,
Text value)
Reads the next key/value pair from the input for processing.
|
public MultiFileWordCount.MultiFileLineRecordReader(Configuration conf, MultiFileSplit split) throws IOException
IOException
public void close() throws IOException
RecordReader
InputSplit
to future operations.close
在接口中 RecordReader<MultiFileWordCount.WordOffset,Text>
IOException
public long getPos() throws IOException
RecordReader
getPos
在接口中 RecordReader<MultiFileWordCount.WordOffset,Text>
IOException
public float getProgress() throws IOException
RecordReader
RecordReader
consumed i.e.
has been processed by?getProgress
在接口中 RecordReader<MultiFileWordCount.WordOffset,Text>
0.0
to 1.0
.IOException
public boolean next(MultiFileWordCount.WordOffset key, Text value) throws IOException
RecordReader
next
在接口中 RecordReader<MultiFileWordCount.WordOffset,Text>
key
- the key to read data intovalue
- the value to read data intoIOException
public MultiFileWordCount.WordOffset createKey()
RecordReader
createKey
在接口中 RecordReader<MultiFileWordCount.WordOffset,Text>
public Text createValue()
RecordReader
createValue
在接口中 RecordReader<MultiFileWordCount.WordOffset,Text>
Copyright © 2009 The Apache Software Foundation