accumulo-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1440572&view=rev
Log:
ACCUMULO-996 fix ruby example

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=1440572&r1=1440571&r2=1440572&view=diff
==============================================================================
--- accumulo/trunk/proxy/examples/ruby/test_client.rb (original)
+++ accumulo/trunk/proxy/examples/ruby/test_client.rb Wed Jan 30 18:10:54 2013
@@ -33,16 +33,16 @@ transport.open()
 login = proxy.login(us)
 
 # print out a table list
-puts "List of tables: #{proxy.listTables(us).inspect}"
+puts "List of tables: #{proxy.listTables(login).inspect}"
 
 testtable = "rubytest"
-proxy.createTable(us, testtable, true, TimeType::MILLIS) unless proxy.tableExists(us,testtable)

+proxy.createTable(login, testtable, true, TimeType::MILLIS) unless proxy.tableExists(login,testtable)

 
 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]})
+proxy.updateAndFlush(login,testtable,{'row1' => [update1,update2]})
 
-cookie = proxy.createScanner(us,testtable,nil)
+cookie = proxy.createScanner(login,testtable,nil)
 result = proxy.nextK(cookie,10)
 result.results.each{ |keyvalue| puts "Key: #{keyvalue.key.inspect} Value: #{keyvalue.value}"
}
 



Mime
View raw message