Skip to content

Commit 1108416

Browse files
Update TaskInputOutputContext.java
Update javadoc to reflect the current code structure.
1 parent 6c3cebd commit 1108416

File tree

1 file changed

+4
-2
lines changed
  • hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce

1 file changed

+4
-2
lines changed

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/TaskInputOutputContext.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public interface TaskInputOutputContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
3737
extends TaskAttemptContext {
3838

3939
/**
40-
* Advance to the next key, value pair, returning null if at end.
41-
* @return the key object that was read into, or null if no more
40+
* Advance to the next key, value pair, returning false if at end.
41+
* @return true if the key object was read, or false if no more
4242
*/
4343
public boolean nextKeyValue() throws IOException, InterruptedException;
4444

@@ -60,6 +60,8 @@ public interface TaskInputOutputContext<KEYIN,VALUEIN,KEYOUT,VALUEOUT>
6060

6161
/**
6262
* Generate an output key/value pair.
63+
* @param key the key to write
64+
* @param value the value to write
6365
*/
6466
public void write(KEYOUT key, VALUEOUT value)
6567
throws IOException, InterruptedException;

0 commit comments

Comments
 (0)