Package org.lilyproject.util.hbase

Examples of org.lilyproject.util.hbase.LocalHTable$HTableFactory


        System.out.println("Using index meta table " + metaTable);

        Configuration conf = HBaseConfiguration.create();
        conf.set("hbase.zookeeper.quorum", zkConnect);

        HTableInterface table = new LocalHTable(conf, metaTable);

        HBaseAdmin admin = new HBaseAdmin(conf);

        ResultScanner scanner = table.getScanner(Bytes.toBytes("meta"));

        Result result;
        while ((result = scanner.next()) != null) {
            byte[] tableName = result.getRow();
            String tableNameString = Bytes.toString(result.getRow());
View Full Code Here


     * @throws IndexNotFoundException if the index does not exist
     */
    public Index getIndex(String name) throws IOException, IndexNotFoundException {
        HTableInterface table;
        try {
            table = new LocalHTable(hbaseConf, name);
        } catch (RuntimeException e) {
            if (e.getCause() != null && e.getCause() instanceof TableNotFoundException) {
                throw new IndexNotFoundException(name);
            } else {
                throw e;
View Full Code Here

TOP

Related Classes of org.lilyproject.util.hbase.LocalHTable$HTableFactory

Copyright © 2018 www.massapicom. 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.