ZooKeeperWatcher zkw = HBaseTestingUtility.getZooKeeperWatcher(UTIL);
Configuration conf = UTIL.getConfiguration();
String userTableName = "testORBranchesInWhichOneBranchHavingOtherFiltersThanSCVF";
IndexedHTableDescriptor ihtd = new IndexedHTableDescriptor(userTableName);
HColumnDescriptor hcd = new HColumnDescriptor("cf1");
ihtd.addFamily(hcd);
IndexSpecification indexSpecification =
createIndexSpecification(hcd, ValueType.String, 10,
new String[] { "c3", "c4", "c5", "c6" }, "idx1");
ihtd.addIndex(indexSpecification);
indexSpecification =
createIndexSpecification(hcd, ValueType.String, 10, new String[] { "c1" }, "idx2");
ihtd.addIndex(indexSpecification);
indexSpecification =
createIndexSpecification(hcd, ValueType.String, 10, new String[] { "c2" }, "idx3");
ihtd.addIndex(indexSpecification);
indexSpecification =
createIndexSpecification(hcd, ValueType.String, 10, new String[] { "c3" }, "idx4");
ihtd.addIndex(indexSpecification);
// indexSpecification = createIndexSpecification(hcd, ValueType.String, 10, new String[] { "c2",
// "c1" }, "idx4");
// ihtd.addIndex(indexSpecification);