Package org.apache.iceberg.hive
Class HiveClientPool
- java.lang.Object
-
- org.apache.iceberg.hive.ClientPool<org.apache.hadoop.hive.metastore.HiveMetaStoreClient,org.apache.thrift.TException>
-
- org.apache.iceberg.hive.HiveClientPool
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class HiveClientPool extends ClientPool<org.apache.hadoop.hive.metastore.HiveMetaStoreClient,org.apache.thrift.TException>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iceberg.hive.ClientPool
ClientPool.Action<R,C,E extends java.lang.Exception>
-
-
Constructor Summary
Constructors Constructor Description HiveClientPool(int poolSize, org.apache.hadoop.conf.Configuration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
close(org.apache.hadoop.hive.metastore.HiveMetaStoreClient client)
protected org.apache.hadoop.hive.metastore.HiveMetaStoreClient
newClient()
protected org.apache.hadoop.hive.metastore.HiveMetaStoreClient
reconnect(org.apache.hadoop.hive.metastore.HiveMetaStoreClient client)
-
Methods inherited from class org.apache.iceberg.hive.ClientPool
close, run
-
-
-
-
Method Detail
-
newClient
protected org.apache.hadoop.hive.metastore.HiveMetaStoreClient newClient()
- Specified by:
newClient
in classClientPool<org.apache.hadoop.hive.metastore.HiveMetaStoreClient,org.apache.thrift.TException>
-
reconnect
protected org.apache.hadoop.hive.metastore.HiveMetaStoreClient reconnect(org.apache.hadoop.hive.metastore.HiveMetaStoreClient client)
- Specified by:
reconnect
in classClientPool<org.apache.hadoop.hive.metastore.HiveMetaStoreClient,org.apache.thrift.TException>
-
close
protected void close(org.apache.hadoop.hive.metastore.HiveMetaStoreClient client)
- Specified by:
close
in classClientPool<org.apache.hadoop.hive.metastore.HiveMetaStoreClient,org.apache.thrift.TException>
-
-