Cassandra v1.0.0-rc.2 Cassandra.Session View Source
Link to this section Summary
Functions
Executes a query and streams chunks of the results
Link to this section Functions
Executes a query and streams chunks of the results.
func
must be a function of arity one which receives the stream as parameter.
Options
:page_size
- number of rows in each chunk (Cassandra recommends against using values below 100)
Example
Session.run_stream(session, "SELECT name, age FROM users;", &Enum.to_list/1, page_size: 2)