Creating secondary indexes in HBase-0.19.3:
You need to enable indexing in HBase before you can create a secondary index on columns. Edit the file $HBASE_INSTALL_DIR/conf/hbase-site.xml and add the following property to it.
Adding secondary index while creating table:
Adding index in an existing table:
Deleting existing index from a table.
Reading from secondary indexed columns:
To read from a secondary index, get a scanner for the index and scan through the data.
To get a scanner to a subset of the rows specify a column filter.
Example Code:
Secondary indexes in HBase
最新推荐文章于 2024-10-12 14:56:32 发布