Sha256: b6490b170e05e170adee2cf60646585958f0070118fdceb6826dbfcf70492dca
Contents?: true
Size: 802 Bytes
Versions: 1
Compression:
Stored size: 802 Bytes
Contents
# impala-ruby ![build](https://travis-ci.org/colinmarc/impala-ruby.svg?branch=master) [![rubygems](https://badge.fury.io/rb/impala.svg)](http://rubygems.org/gems/impala) This is a ruby client for [Cloudera Impala][1]. You use it like this: ```ruby require 'impala' Impala.connect('host', 21000) do |conn| conn.query('SELECT zip, income FROM zipcode_incomes LIMIT 5') end # => [{:zip=>'02446', :income=>89597}, ...] ``` You can also use cursors to avoid loading the entire result set into memory: ```ruby conn = Impala.connect('host', 21000) cursor = conn.execute('SELECT zip, income FROM zipcode_incomes ORDER BY income DESC') one_row = cursor.fetch_row cursor.each do |row| # etc end conn.close ``` [1]: https://ccp.cloudera.com/display/IMPALA10BETADOC/Introducing+Cloudera+Impala
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
impala-0.4.3 | README.md |