HBASE-2101 KeyValueSortReducer collapses all values to last passed

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@898658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-01-13 06:40:49 +00:00
parent cb1ca32dc2
commit 2af4aa5a9e
2 changed files with 2 additions and 1 deletions

View File

@ -154,6 +154,7 @@ Release 0.21.0 - Unreleased
HBASE-2114 Can't start HBase in trunk (JD and Kay Kay via JD)
HBASE-2115 ./hbase shell would not launch due to missing jruby dependency
(Kay Kay via JD)
HBASE-2101 KeyValueSortReducer collapses all values to last passed
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -38,7 +38,7 @@ public class KeyValueSortReducer extends Reducer<ImmutableBytesWritable, KeyValu
throws java.io.IOException, InterruptedException {
TreeSet<KeyValue> map = new TreeSet<KeyValue>(KeyValue.COMPARATOR);
for (KeyValue kv: kvs) {
map.add(kv);
map.add(kv.clone());
}
context.setStatus("Read " + map.getClass());
int index = 0;