问题
I was going through the documentation of CQLv3.0
Should we specify composite keys across updates and selects like 'a:b:1' incase my comparator
or key_validation
is ascii
, ascii
, int
?
There is no mention on <select expression>
in select or way to specify composite columns and rows in update too <primary/composite key name>
Expecting some help over it
回答1:
CQL 3 takes care of managing the actual composite types and values for you. CQL 3 rows are not necessarily the same as the underlying Cassandra rows ("storage engine rows"). The composite values are abstracted into separate columns.
The example at http://www.datastax.com/dev/blog/schema-in-cassandra-1-1 may help in understanding the transformation.
来源:https://stackoverflow.com/questions/10950338/cassandra-cql-v3-0-composite-types