hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r836275 - /hadoop/hbase/trunk/bin/HBase.rb
Date Sat, 14 Nov 2009 22:25:14 GMT
Author: stack
Date: Sat Nov 14 22:25:11 2009
New Revision: 836275

URL: http://svn.apache.org/viewvc?rev=836275&view=rev
Log:
HBASE-1977  Add ts and allow setting VERSIONS when scanning in shell; better fix for ts

Modified:
    hadoop/hbase/trunk/bin/HBase.rb

Modified: hadoop/hbase/trunk/bin/HBase.rb
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/bin/HBase.rb?rev=836275&r1=836274&r2=836275&view=diff
==============================================================================
--- hadoop/hbase/trunk/bin/HBase.rb (original)
+++ hadoop/hbase/trunk/bin/HBase.rb Sat Nov 14 22:25:11 2009
@@ -431,7 +431,7 @@
           qualifier = String.from_java_bytes kv.getQualifier()
           column = family + ':' + qualifier
           cell = toString(column, kv, maxlength)
-          @formatter.row([row, "column=%s, %s" % [column, kv.getTimestamp(), cell]])
+          @formatter.row([row, "column=%s, %s" % [column, cell]])
         end
       end
       @formatter.footer(now, count)
@@ -474,7 +474,7 @@
             Bytes.toLong(kv.getValue())]
         end
       end
-      val = Bytes.toStringBinary(kv.getValue())
+      val = "timestamp=" + kv.getTimestamp().to_s + ", value=" + Bytes.toStringBinary(kv.getValue())
       maxlength != -1 ? val[0, maxlength] : val    
     end
   



Mime
View raw message