Commit 45acd4ad authored by feng's avatar feng

Stripes 5

parent 76b2280c
This diff is collapsed.
......@@ -104,9 +104,9 @@ public class StringToIntMapWritable implements Writable {
String result = new String();
Iterator iterator = hashMap.keySet().iterator();
while (iterator.hasNext()) {
Text text = (Text)iterator.next();
IntWritable intWritable = hashMap.get(iterator.next());
result += text.toString() + " : " + intWritable.toString();
word = (Text)iterator.next();
count = hashMap.get(iterator.next());
result += word.toString() + " : " + count.toString();
}
return result;
}
......
......@@ -97,7 +97,7 @@ class StripesMapper
count++;
stripe.add(second, count);
} else {
stripe.add(second, 1);
stripe.add(second, (int)1);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment