nosql - Keeping sorted values in a column family -


i need data sorted in column family. while discovering cassandra found clustering order option column family. while creating column families dynamically unable set option.

via cqlsh when run

create table con1(day timestamp,ts timestamp,value double, primary key(day,ts))   clustering order (ts desc); 

it stores ts values sorted.

when create column family via hector dynamically, defaults compact storage. unable define clustering order using hector.

any solution problem?

is there other way keep values sorted in column family?

use native cql java driver instead of hector: https://github.com/datastax/java-driver


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -