我要评分
获取效率
正确性
完整性
易理解

Querying an Index

After an index is created, you can run commands to query index information, including the index column definition, covering column definition, and index status.

How to Use

Run the following command to view the index definition and status:

hbase com.huawei.boostkit.hindex.mapreduce.GlobalTableIndexer -Dtablename.to.show=tablename

The command output displays the index column definition, covering column definition, and index status:

1
2
3
The index information of table :
IndexName : idx_0, IndexColumns : [cf_0:q_0 -> type:STRING, cf_0:q_1 -> type:STRING], CoveredColumns : [cf_0:q_0 -> type:STRING], IndexState : ACTIVE
IndexName : idx_1, IndexColumns : [cf_0:q_0 -> type:STRING, cf_0:q_1 -> type:STRING, cf_0:q_2 -> type:STRING], CoveredColumns : [], IndexState : ACTIVE