hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1430004 - /hbase/branches/0.94/src/main/ruby/hbase/table.rb
Date Mon, 07 Jan 2013 21:00:06 GMT
Author: stack
Date: Mon Jan  7 21:00:05 2013
New Revision: 1430004

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

Modified:
    hbase/branches/0.94/src/main/ruby/hbase/table.rb

Modified: hbase/branches/0.94/src/main/ruby/hbase/table.rb
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/ruby/hbase/table.rb?rev=1430004&r1=1430003&r2=1430004&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/ruby/hbase/table.rb (original)
+++ hbase/branches/0.94/src/main/ruby/hbase/table.rb Mon Jan  7 21:00:05 2013
@@ -89,7 +89,8 @@ module Hbase
         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