hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1430003 - /hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb
Date Mon, 07 Jan 2013 20:59:17 GMT
Author: stack
Date: Mon Jan  7 20:59:16 2013
New Revision: 1430003

URL: http://svn.apache.org/viewvc?rev=1430003&view=rev
Log:
HBASE-7476 HBase shell count command doesn't escape binary output

Modified:
    hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb

Modified: hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb?rev=1430003&r1=1430002&r2=1430003&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb (original)
+++ hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb Mon Jan  7 20:59:16 2013
@@ -180,7 +180,8 @@ EOF
         count += 1
         next unless (block_given? && count % interval == 0)
         # Allow command modules to visualize counting process
-        yield(count, String.from_java_bytes(row.getRow))
+        yield(count, 
+              org.apache.hadoop.hbase.util.Bytes::toStringBinary(row.getRow))
       end
 
       # Return the counter



Mime
View raw message