Cassandra CQL v3.0 & Composite Types

若如初见. 提交于 2019-12-12 17:07:39

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!