我在赫克托和卡桑德拉的教程中看到过DynamicCompositeType。
有没有人能详细说明
create column family Composite with comparator ='DynamicCompositeType
(t=>TimeUUIDType,s=>UTF8Type)'
and default_validation_class=UTF8Type and key_validation_class=UTF8Type;和
create column family Composite
with comparator = 'CompositeType(TimeUUIDType,UTF8Type)'
and key_validation_class = 'UTF8Type'
and default_validation_class = 'UTF8Type'我没有在Cassandra文档中找到它
发布于 2012-11-28 22:43:17
它可能有助于理解Cassandra存储数据的方式以及组合的实际内容:
发布于 2012-11-28 20:51:32
使用静态复合CF,每个列都将具有相同的类型,而对于动态CCF,每个列可以具有不同的数据类型。
如果您确定CF中包含哪种类型的数据,最好使用静态定义,否则使用动态CF。
https://stackoverflow.com/questions/13601406
复制相似问题