|
||||||||||
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 | |
---|---|
Counter |
getCounter(java.lang.Enum<?> counterName)
Get the Counter for the given counterName . |
Counter |
getCounter(java.lang.String groupName,
java.lang.String counterName)
Get the Counter for the given groupName and
counterName . |
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 p2pMapReduce.mapreduceModule.TaskAttemptContext |
---|
getStatus, getTaskAttemptID, setStatus |
Methods inherited from interface p2pMapReduce.mapreduceModule.JobContext |
---|
getCombinerClass, getConfiguration, getInputFormatClass, getJar, getJobID, getJobName, getJobSetupCleanupNeeded, getMapOutputKeyClass, getMapOutputValueClass, getMapperClass, getMaxMapAttempts, getMaxReduceAttempts, getNumReduceTasks, getOutputFormatClass, getOutputKeyClass, getOutputValueClass, getPartitionerClass, getProfileEnabled, getProfileParams, getProfileTaskRange, getReducerClass, getSortComparator, getUser, getWorkingDirectory |
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
Counter getCounter(java.lang.Enum<?> counterName)
Counter
for the given counterName
.
counterName
- counter name
Counter
for the given counterName
Counter getCounter(java.lang.String groupName, java.lang.String counterName)
Counter
for the given groupName
and
counterName
.
counterName
- counter name
Counter
for the given groupName
and
counterName
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 |