1

I'd like to get first n rows then next n rows and it continues like that. How can I do that in phpcassa/Cassandra?

//Edit
I've seen ColumnFamily::create_slice_predicate method in phpcassa but it's private and get method always expects row key. I want something like Cassandra-Cluster-Admin's browse column family functionality. I just want to know if there's a phpcassa solution or should I dig the thrift API?

m3rg
  • 688
  • 2
  • 9
  • 25

1 Answers1

2

Use ColumnFamily::get_range. It does what you want, but wraps it in a nice Iterator interface so that you don't have to do the chunking yourself.

You can find an example of it in the phpcassa tutorial.

Michael Mior
  • 28,107
  • 9
  • 89
  • 113
Tyler Hobbs
  • 6,872
  • 24
  • 31