Package org.apache.hadoop.hbase.hbql.impl

Examples of org.apache.hadoop.hbase.hbql.impl.HConnectionPoolImpl


                                                    final HBaseConfiguration config) throws HBqlException {

        if (Utils.isValidString(poolName) && getConnectionPoolMap().containsKey(poolName))
            throw new HBqlException("Connection pool already exists: " + poolName);

        final HConnectionPoolImpl connectionPool = new HConnectionPoolImpl(initialPoolSize,
                                                                           maxPoolSize,
                                                                           poolName,
                                                                           config,
                                                                           getMaxPoolReferencesPerTablePerConnection());
        // Add to map if it has valid name
        if (Utils.isValidString(connectionPool.getName()))
            getConnectionPoolMap().put(connectionPool.getName(), connectionPool);

        return connectionPool;
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.hbql.impl.HConnectionPoolImpl

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.