|
@@ -1256,7 +1256,8 @@ abstract public class Task implements Writable, Configurable {
|
|
more = in.next();
|
|
more = in.next();
|
|
if (more) {
|
|
if (more) {
|
|
DataInputBuffer nextKeyBytes = in.getKey();
|
|
DataInputBuffer nextKeyBytes = in.getKey();
|
|
- keyIn.reset(nextKeyBytes.getData(), nextKeyBytes.getPosition(), nextKeyBytes.getLength());
|
|
|
|
|
|
+ keyIn.reset(nextKeyBytes.getData(), nextKeyBytes.getPosition(),
|
|
|
|
+ nextKeyBytes.getLength() - nextKeyBytes.getPosition());
|
|
nextKey = keyDeserializer.deserialize(nextKey);
|
|
nextKey = keyDeserializer.deserialize(nextKey);
|
|
hasNext = key != null && (comparator.compare(key, nextKey) == 0);
|
|
hasNext = key != null && (comparator.compare(key, nextKey) == 0);
|
|
} else {
|
|
} else {
|
|
@@ -1270,7 +1271,8 @@ abstract public class Task implements Writable, Configurable {
|
|
*/
|
|
*/
|
|
private void readNextValue() throws IOException {
|
|
private void readNextValue() throws IOException {
|
|
DataInputBuffer nextValueBytes = in.getValue();
|
|
DataInputBuffer nextValueBytes = in.getValue();
|
|
- valueIn.reset(nextValueBytes.getData(), nextValueBytes.getPosition(), nextValueBytes.getLength());
|
|
|
|
|
|
+ valueIn.reset(nextValueBytes.getData(), nextValueBytes.getPosition(),
|
|
|
|
+ nextValueBytes.getLength() - nextValueBytes.getPosition());
|
|
value = valDeserializer.deserialize(value);
|
|
value = valDeserializer.deserialize(value);
|
|
}
|
|
}
|
|
}
|
|
}
|