accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1440530 - /accumulo/trunk/proxy/examples/ruby/test_client.rb
Date Wed, 30 Jan 2013 17:13:39 GMT
Author: ecn
Date: Wed Jan 30 17:13:39 2013
New Revision: 1440530

URL: http://svn.apache.org/viewvc?rev=1440530&view=rev
Log:
ACCUMUL-1007 finally figured out how to run a ruby program

Modified:
    accumulo/trunk/proxy/examples/ruby/test_client.rb

Modified: accumulo/trunk/proxy/examples/ruby/test_client.rb
URL: http://svn.apache.org/viewvc/accumulo/trunk/proxy/examples/ruby/test_client.rb?rev=1440530&r1=1440529&r2=1440530&view=diff
==============================================================================
--- accumulo/trunk/proxy/examples/ruby/test_client.rb (original)
+++ accumulo/trunk/proxy/examples/ruby/test_client.rb Wed Jan 30 17:13:39 2013
@@ -36,11 +36,11 @@ puts "Server is up? #{proxy.ping(us)}"
 puts "List of tables: #{proxy.listTables(us).inspect}"
 
 testtable = "rubytest"
-proxy.createTable(us,testtable) unless proxy.tableExists(us,testtable) 
+proxy.createTable(us, testtable, true, TimeType::MILLIS) unless proxy.tableExists(us,testtable)

 
-update1 = PColumnUpdate.new({'colFamily' => "cf1", 'colQualifier' => "cq1", 'value'=>
"a"})
-update2 = PColumnUpdate.new({'colFamily' => "cf2", 'colQualifier' => "cq2", 'value'=>
"b"})
-proxy.updateAndFlush(us,testtable,{'row1' => [update1,update2]},nil)
+update1 = ColumnUpdate.new({'colFamily' => "cf1", 'colQualifier' => "cq1", 'value'=>
"a"})
+update2 = ColumnUpdate.new({'colFamily' => "cf2", 'colQualifier' => "cq2", 'value'=>
"b"})
+proxy.updateAndFlush(us,testtable,{'row1' => [update1,update2]})
 
 cookie = proxy.createScanner(us,testtable,nil)
 result = proxy.nextK(cookie,10)



Mime
View raw message