Examples of IndexSpecification


Examples of org.apache.hadoop.hbase.index.IndexSpecification

    HBaseAdmin admin = new HBaseAdmin(conf);
    IndexedHTableDescriptor htd = new IndexedHTableDescriptor("testDeleteTable");
    HColumnDescriptor hcd = new HColumnDescriptor("cf");
    htd.addFamily(hcd);
    IndexSpecification iSpec = new IndexSpecification("spec");
    iSpec.addIndexColumn(hcd, "q", ValueType.String, 10);
    htd.addIndex(iSpec);
    admin.createTable(htd);
    ZKAssign.blockUntilNoRIT(HBaseTestingUtility.getZooKeeperWatcher(TEST_UTIL));

    admin.disableTable("testDeleteTable");
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.