public class CachedClientPool extends Object implements ClientPool<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
Mostly copied from iceberg.
ClientPool.Action<R,C,E extends Exception>, ClientPool.ClientPoolImpl<C,E extends Exception>, ClientPool.ExecuteAction<C,E extends Exception>
Constructor and Description |
---|
CachedClientPool(org.apache.hadoop.conf.Configuration conf,
Options options,
String clientClassName) |
Modifier and Type | Method and Description |
---|---|
void |
execute(ClientPool.ExecuteAction<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action) |
<R> R |
run(ClientPool.Action<R,org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action) |
public <R> R run(ClientPool.Action<R,org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action) throws org.apache.thrift.TException, InterruptedException
run
in interface ClientPool<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
org.apache.thrift.TException
InterruptedException
public void execute(ClientPool.ExecuteAction<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException> action) throws org.apache.thrift.TException, InterruptedException
execute
in interface ClientPool<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
org.apache.thrift.TException
InterruptedException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.