KEYIN
- VALUEIN
- public abstract class RecordReader<KEYIN,VALUEIN> extends Object implements Closeable
Mapper
.构造器和说明 |
---|
RecordReader() |
限定符和类型 | 方法和说明 |
---|---|
abstract void |
close()
Close the record reader.
|
abstract KEYIN |
getCurrentKey()
Get the current key
|
abstract VALUEIN |
getCurrentValue()
Get the current value.
|
abstract float |
getProgress()
The current progress of the record reader through its data.
|
abstract void |
initialize(InputSplit split,
TaskAttemptContext context)
Called once at initialization.
|
abstract boolean |
nextKeyValue()
Read the next key, value pair.
|
public abstract void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
split
- the split that defines the range of records to readcontext
- the information about the taskIOException
InterruptedException
public abstract boolean nextKeyValue() throws IOException, InterruptedException
IOException
InterruptedException
public abstract KEYIN getCurrentKey() throws IOException, InterruptedException
IOException
InterruptedException
public abstract VALUEIN getCurrentValue() throws IOException, InterruptedException
IOException
InterruptedException
public abstract float getProgress() throws IOException, InterruptedException
IOException
InterruptedException
public abstract void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
IOException
Copyright © 2009 The Apache Software Foundation