Rate This Document
Findability
Accuracy
Completeness
Readability

Querying Indexes

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