Package org.apache.hadoop.hbase.client

Examples of org.apache.hadoop.hbase.client.HTableInterfaceFactory


     *
     * @param threadPool instance of {@link ExecutorService} to use
     * @return instance of {@link HaeinsaTablePool}
     */
    public static HaeinsaTablePool createHaeinsaTablePool(Configuration conf, final ExecutorService threadPool) {
        return new HaeinsaTablePool(conf, 128, new DefaultHaeinsaTableIfaceFactory(new HTableInterfaceFactory() {
            @Override
            public HTableInterface createHTableInterface(Configuration config, byte[] tableName) {
                try {
                    return new HTable(tableName, HConnectionManager.getConnection(config), threadPool);
                } catch (ZooKeeperConnectionException e) {
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.client.HTableInterfaceFactory

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.