Inherits

Object

Includes

  • Enumerable

Methods

execution_info

Query execution information, such as number of retries and all tried hosts, etc.

Returns:
Type Details
Execution::Info

empty?

Returns whether it has any rows

Returns:
Type Details
Boolean whether it has any rows

size

aliased as: length

Returns rows count

Returns:
Type Details
Integer rows count

each

{|row| … } aliased as: rows each_row

Returns Enumerator if no block given

Yield Parameters:
Name Type Details
row Hash current row
Returns:
Type Details
(Enumerator or self) returns Enumerator if no block given

last_page?

Returns whether no more pages are available

Returns:
Type Details
Boolean whether no more pages are available

next_page

(options = nil)

Loads next page synchronously

Note
:paging_state option will be ignored.
Parameters:
Name Type Details
options Hash (defaults to: nil) additional options, just like the ones for Session#execute
Returns:
Type Details
(Result or nil) returns nil if last page
See Also:

next_page_async

(options = nil)

Loads next page asynchronously

Note
:paging_state option will be ignored.
Parameters:
Name Type Details
options Hash (defaults to: nil) additional options, just like the ones for Session#execute_async
Returns:
Type Details
Future<Result, nil> nil if last page
See Also:

paging_state

Exposes current paging state for stateless pagination.

Note
Although this feature exists to allow web applications to store paging state in an HTTP cookie, it is not safe to expose without encrypting or otherwise securing it. Paging state contains information internal to the Apache Cassandra cluster, such as partition key and data. Additionally, if a paging state is sent with CQL statement, different from the original, the behavior of Cassandra is undefined and will likely cause a server process of the coordinator of such request to abort.
Returns:
Type Details
(String or nil) current paging state as a String or nil.
See Also: