Package org.apache.iceberg.hive
Class HiveClientPool
java.lang.Object
org.apache.iceberg.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
 
org.apache.iceberg.hive.HiveClientPool
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- ClientPool<org.apache.hadoop.hive.metastore.IMetaStoreClient,- org.apache.thrift.TException> 
public class HiveClientPool
extends ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> 
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.iceberg.ClientPoolClientPool.Action<R,C, E extends Exception> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidclose(org.apache.hadoop.hive.metastore.IMetaStoreClient client) protected booleanprotected org.apache.hadoop.hive.metastore.IMetaStoreClientprotected org.apache.hadoop.hive.metastore.IMetaStoreClientreconnect(org.apache.hadoop.hive.metastore.IMetaStoreClient client) 
- 
Constructor Details- 
HiveClientPoolpublic HiveClientPool(int poolSize, org.apache.hadoop.conf.Configuration conf) 
 
- 
- 
Method Details- 
newClientprotected org.apache.hadoop.hive.metastore.IMetaStoreClient newClient()- Specified by:
- newClientin class- ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,- org.apache.thrift.TException> 
 
- 
reconnectprotected org.apache.hadoop.hive.metastore.IMetaStoreClient reconnect(org.apache.hadoop.hive.metastore.IMetaStoreClient client) - Specified by:
- reconnectin class- ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,- org.apache.thrift.TException> 
 
- 
isConnectionException- Overrides:
- isConnectionExceptionin class- ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,- org.apache.thrift.TException> 
 
- 
closeprotected void close(org.apache.hadoop.hive.metastore.IMetaStoreClient client) - Specified by:
- closein class- ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,- org.apache.thrift.TException> 
 
 
-