Sha256: 7c56ce96306e4e6b2720dd5c120de6985c839af22435c0159d5ef2df795d09bc

Contents?: true

Size: 640 Bytes

Versions: 8

Compression:

Stored size: 640 Bytes

Contents

# impala-ruby

This is an ruby client for [Cloudera's 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

8 entries across 8 versions & 1 rubygems

Version Path
impala-0.2.0 README.md
impala-0.1.6 README.md
impala-0.1.5 README.md
impala-0.1.4 README.md
impala-0.1.3 README.md
impala-0.1.2 README.md
impala-0.1.1 README.md
impala-0.1.0 README.md