【问题标题】:how to get the list of indexes assign in table in cassandra如何获取在cassandra的表中分配的索引列表
【发布时间】:2014-01-23 18:02:19
【问题描述】:

1) 像使用“DESCRIBE COLUMFAMILY schemaname.tablename”这个命令我们可以获得特定表的详细信息如何知道分配给特定表的索引列表?

提前致谢。

【问题讨论】:

标签: windows indexing cassandra cassandra-2.0


【解决方案1】:

只需编写如下查询,您将获得特定表上的所有索引(查询中的 coulmnfamily_name):

SELECT index_name FROM system.schema_columns 
WHERE keyspace_name='your keyspace' 
AND columnfamily_name='table name on which you want to know indexes';

【讨论】:

    猜你喜欢
    • 2014-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-23
    • 2012-05-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多