java - cassandra : Is there a way to get all value of columns starting with a particular prefix? -
i need column:column_value pairs key. constraint columns have common prefix , there way using hector ?
you can slicequery, , range prefix prefix|, providing alphanumerics should work.
stringserializer ss = stringserializer.get(); slicequery slicequery = hfactory.createslicequery(keyspace, rowserializer, ss, ss); slicequery.setcolumnfamily(my_column_family); slicequery.setkey(rowkey); slicequery.setrange("prefix", "prefix|", false, integer.max_int);
Comments
Post a Comment