hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1514773 - /hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java
Date Fri, 16 Aug 2013 16:26:00 GMT
Author: sershe
Date: Fri Aug 16 16:26:00 2013
New Revision: 1514773

URL: http://svn.apache.org/r1514773
Log:
HBASE-9238 bug in Mutation::getFamilyMap

Modified:
    hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java

Modified: hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java?rev=1514773&r1=1514772&r2=1514773&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java
(original)
+++ hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java
Fri Aug 16 16:26:00 2013
@@ -214,11 +214,11 @@ public abstract class Mutation extends O
    */
   @Deprecated
   public Map<byte[], List<KeyValue>> getFamilyMap() {
-    Map<byte[], List<KeyValue>> fm = new TreeMap();
+    Map<byte[], List<KeyValue>> fm = new TreeMap<byte[], List<KeyValue>>(Bytes.BYTES_COMPARATOR);
     for (Map.Entry<byte[], List<Cell>> e : this.familyMap.entrySet()) {
       byte[] family = e.getKey();
       List<Cell> cells = e.getValue();
-      List<KeyValue> kvs = new ArrayList(cells.size());
+      List<KeyValue> kvs = new ArrayList<KeyValue>(cells.size());
       for (Cell c : cells) {
          KeyValue kv = KeyValueUtil.ensureKeyValue(c);
          kvs.add(kv);



Mime
View raw message