本文介绍了Astyanax复合柱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个像这样的数据模型.在此数据模型中,我正在使用复合键.我知道如何制作复合键.但是在这种情况下,我无法做到.

I am looking for a data model look like this. In this data model i am using composite key. I know how to make a composite key. But somehow in this case i m unable to do.

User_Keys_By_Last_Name = {
  "Engineering" : {"anderson", 1 : "ac1263", "anderson", 2 : "724f02", ... }, 
  "Sales" : { "adams", 1 : "b32704", "alden", 1 : "1553bd", ... }, 
}

我想在Astyanax中做到这一点.请建议我该怎么做.

I want to do this in Astyanax. Please suggest me how to do it.

预先感谢

推荐答案

最好选择CQL3. http://www.datastax.com/dev/blog/whats-new-in-cql-3-0

Better you go for CQL3. http://www.datastax.com/dev/blog/whats-new-in-cql-3-0

这篇关于Astyanax复合柱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 13:41