|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
KEYIN
- the input key type for the taskVALUEIN
- the input value type for the taskKEYOUT
- the output key type for the taskVALUEOUT
- the output value type for the taskpublic interface TaskInputOutputContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
A context object that allows input and output from the task. It is only
supplied to the Mapper
or Reducer
.
Field Summary |
---|
Method Summary | |
---|---|
KEYIN |
getCurrentKey()
Get the current key. |
VALUEIN |
getCurrentValue()
Get the current value. |
OutputCommitter |
getOutputCommitter()
Get the OutputCommitter for the task-attempt. |
boolean |
nextKeyValue()
Advance to the next key, value pair, returning null if at end. |
void |
write(KEYOUT key,
VALUEOUT value)
Generate an output key/value pair. |
Methods inherited from interface org.apache.hadoop.mapreduce.TaskAttemptContext |
---|
getCounter, getCounter, getStatus, getTaskAttemptID, setStatus |
Methods inherited from interface org.apache.hadoop.util.Progressable |
---|
progress |
Method Detail |
---|
boolean nextKeyValue() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
KEYIN getCurrentKey() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
VALUEIN getCurrentValue() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
void write(KEYOUT key, VALUEOUT value) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
OutputCommitter getOutputCommitter()
OutputCommitter
for the task-attempt.
OutputCommitter
for the task-attempt
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |