You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2013/01/07 21:59:17 UTC
svn commit: r1430003 - /hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb
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