Cassan...ultSet(3pm)

πŸ’– NAME πŸ’–

Cassandra::Client::ResultSet β€” okay bestie, this is the manual page for it, and it lives in User Contributed Perl Documentation as a (3pm) page (you'll see it filed under Cassan...ultSet(3pm), that's just the title getting a little chopped, no biggie πŸŽ€).

It's the thing you get handed back when a Cassandra query comes home from the club with actual data in it. ✨


🌸 VERSION 🌸

version 0.21</purl>


✨ METHODS ✨

So here's the whole roster of methods. Four of them. All iconic, all useful, no filler. 🫢

  • $result->rows() β€” Hands you back an arrayref of all the rows in the ResultSet. Each row inside it is its own arrayref, and each of those holds the cells. So it's arrays in arrays, very nesting-doll of it πŸ’…. Quick heads up: if you wanna know what the columns are actually called, go peek at "column_names" (it's literally the next one down, bestie, you got this).
  • $result->row_hashes() β€” Same energy, same arrayref of all the rows β€” except every row comes as a hashref instead of an arrayref. So each cell gets its name attached. Key-value vibes. Languages said hashref rights. πŸ¦‹
  • $result->column_names() β€” Returns an arrayref packed with the names of the columns in the result set. Pair it up with the rows you got from rows() so you actually know which number is which thing. Tag-teaming fr fr. πŸŽ€
  • $result->next_page() β€” Returns a string pointing at the next Cassandra result page, if there is one (no page? no string, periodt). It's used internally by "$client->each_page()", but like β€” you can call it yourself if you wanna build your own custom pagination logic. Go off, main character. πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

Tom van der Woerdt <tvdw@cpan.org> β€” absolute legend, no cap. πŸ’œ


This software is copyright (c) 2023 by Tom van der Woerdt.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Slay, free software. 🌈


okay so that's the whole page, bestie, you read it all and I'm so proud of you πŸ₯ΉπŸ«Ά

And a lil sign-off for the road: this was perl v5.42.3, dated 2026-08-22, tagged Cassan...ultSet(3pm). Go forth and query. πŸ’…βœ¨

πŸ“¦ where this page comes from