hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r698378 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/io/RowResult.java
Date Tue, 23 Sep 2008 22:36:07 GMT
Author: stack
Date: Tue Sep 23 15:36:07 2008
New Revision: 698378

URL: http://svn.apache.org/viewvc?rev=698378&view=rev
Log:
HBASE-898 RowResult.containsKey(String) doesn't work

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/io/RowResult.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=698378&r1=698377&r2=698378&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Tue Sep 23 15:36:07 2008
@@ -7,6 +7,8 @@
   BUG FIXES
    HBASE-891   HRS.validateValuesLength throws IOE, gets caught in the retries
    HBASE-892   Cell iteration is broken (Doğacan Güney via Jim Kellerman)
+   HBASE-898   RowResult.containsKey(String) doesn't work
+               (Doğacan Güney via Jim Kellerman)
 
   IMPROVEMENTS
    HBASE-890   Alter table operation and also related changes in REST interface

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/io/RowResult.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/io/RowResult.java?rev=698378&r1=698377&r2=698378&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/io/RowResult.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/io/RowResult.java Tue Sep 23 15:36:07
2008
@@ -92,6 +92,10 @@
   public boolean containsKey(Object key) {
     return cells.containsKey(key);
   }
+  
+  public boolean containsKey(String key) {
+    return cells.containsKey(Bytes.toBytes(key));
+  }
 
   public boolean containsValue(@SuppressWarnings("unused") Object value) {
     throw new UnsupportedOperationException("Don't support containsValue!");



Mime
View raw message