Package org.apache.hadoop.hbase

Examples of org.apache.hadoop.hbase.HTableDescriptor.removeIndex()


   */
  public void removeIndex(byte[] baseTableName, String indexId) throws IOException {
    super.disableTable(baseTableName);
    HTableDescriptor desc = super.getTableDescriptor(baseTableName);
    IndexSpecification spec = desc.getIndex(indexId);
    desc.removeIndex(indexId);
    this.disableTable(spec.getIndexedTableName(baseTableName));
    this.deleteTable(spec.getIndexedTableName(baseTableName));
    super.modifyTable(baseTableName, desc);
    super.enableTable(baseTableName);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.