Examples of addIndexColumn()


Examples of org.apache.hadoop.hbase.index.IndexSpecification.addIndexColumn()

        HBaseAdmin admin = new HBaseAdmin(conf);
        IndexedHTableDescriptor htd = new IndexedHTableDescriptor("testCreateTable");
        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);
        return null;
      }
    };
View Full Code Here

Examples of org.apache.hadoop.hbase.index.IndexSpecification.addIndexColumn()

        HBaseAdmin admin = new HBaseAdmin(conf);
        IndexedHTableDescriptor htd = new IndexedHTableDescriptor("testCreateTable_idx");
        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);
        return null;
      }
    };
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.