class Cassandra::Result
Inherits
Object
Includes
Enumerable
Methods
execution_info
Query execution information, such as number of retries and all tried hosts, etc.
empty?
Returns whether it has any rows
size
aliased as: lengthReturns rows count
each
{|row| … } aliased as: rows each_rowReturns Enumerator if no block given
last_page?
Returns whether no more pages are available
next_page
(options = nil)Loads next page synchronously
- Note
-
:paging_state
option will be ignored.
next_page_async
(options = nil)Loads next page asynchronously
- Note
-
:paging_state
option will be ignored.
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.