From 11084168d8cfda6a3246c242ede40092d8359ece Mon Sep 17 00:00:00 2001 From: Juan Sebastian Cadena Date: Thu, 25 Sep 2014 11:36:41 -0500 Subject: [PATCH] Update TaskInputOutputContext.java Update javadoc to reflect the current code structure. --- .../org/apache/hadoop/mapreduce/TaskInputOutputContext.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/TaskInputOutputContext.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/TaskInputOutputContext.java index 2e2629716c3..f3963f499f0 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/TaskInputOutputContext.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/TaskInputOutputContext.java @@ -37,8 +37,8 @@ public interface TaskInputOutputContext extends TaskAttemptContext { /** - * Advance to the next key, value pair, returning null if at end. - * @return the key object that was read into, or null if no more + * Advance to the next key, value pair, returning false if at end. + * @return true if the key object was read, or false if no more */ public boolean nextKeyValue() throws IOException, InterruptedException; @@ -60,6 +60,8 @@ public interface TaskInputOutputContext /** * Generate an output key/value pair. + * @param key the key to write + * @param value the value to write */ public void write(KEYOUT key, VALUEOUT value) throws IOException, InterruptedException;