Sha256: 6198a1960c2f17b8a20f487c6e35b77d79481ea5b7bc6feb7d49a224193dd8b2

Contents?: true

Size: 637 Bytes

Versions: 5

Compression:

Stored size: 637 Bytes

Contents

# impala-ruby

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

5 entries across 5 versions & 1 rubygems

Version Path
impala-0.4.2 README.md
impala-0.4.1 README.md
impala-0.4.0 README.md
impala-0.3.1 README.md
impala-0.3.0 README.md