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

c++ - Linked List error when inserting for the last time -

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

tsql - Pivot with Temp Table (definition for column must include data type) -- SQL Server 2008 -