【发布时间】:2018-04-11 01:11:49
【问题描述】:
我有一个 Cassandra 表,它的一列看起来像这样
"ArticlesViewed" frozen<map<int, frozen<list<int>>>>
and it contains data like
ArticlesViewed
-----------------------------------------------
{400: [9, 19, 11, 12], 545: [183, 44, 25, 16, 97]}
{812: [2, 44, 41, 22], 376: [123, 14, 15, 16, 47]}
{134: [9, 10, 11, 92], 111: [533, 14, 15, 16, 27]}
我想在此列上创建索引,以(不允许过滤)此列,但不允许我这样做
cqlsh>CREATE INDEX ON user_profile("ArticlesViewed");
[Invalid query] message="Cannot create values() index on frozen column ArticlesViewed.
Frozen collections only support full() indexes"
Also,i want to query on the <value> {400: [9, 19, 11, 12],of the column like
select "ArticlesViewed" from user_profile where "ArticlesViewed" =19;
请建议我一些方法来做到这一点..任何帮助将不胜感激
【问题讨论】:
标签: indexing cassandra bigdata cqlsh