Cassandra Hector: How to retrieve all rows of a column family?
问题 I am looking for a code example to retrieve all rows and all columns of a column family. Something like: SELECT * FROM MyTable I see that this can be done using a RangeSlicesQuery, but you still have to provide a certain range. And I think you have to specify the column names too. Is there a clean and safe way to do this? Using Hector 1.0 and Cassandra 1.0. 回答1: Try something like this: public class Dumper { private final Cluster cluster; private final Keyspace keyspace; public Dumper() {