我想要得到前n行,然后是下n行,然后继续这样。我如何在phpcassa/Cassandra中做到这一点?
//编辑
我在phpcassa中见过ColumnFamily::create_slice_predicate方法,但它是私有的,get方法总是需要行键。我想要一些类似Cassandra-Cluster-Admin的浏览列系列功能。我只想知道是否有phpcassa解决方案,或者我应该深入研究thrift API?
发布于 2011-12-16 02:18:59
使用ColumnFamily::get_range。它可以做你想做的,但是把它包装在一个很好的Iterator接口中,这样你就不需要自己去做分块了。
您可以在phpcassa tutorial中找到它的一个示例。
https://stackoverflow.com/questions/8489702
复制相似问题