Class DefaultThriftMetastoreClientFactory
- java.lang.Object
-
- io.trino.plugin.hive.metastore.thrift.DefaultThriftMetastoreClientFactory
-
- All Implemented Interfaces:
ThriftMetastoreClientFactory
public class DefaultThriftMetastoreClientFactory extends Object implements ThriftMetastoreClientFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultThriftMetastoreClientFactory(ThriftMetastoreConfig config, HiveMetastoreAuthentication metastoreAuthentication, NodeManager nodeManager)DefaultThriftMetastoreClientFactory(Optional<SSLContext> sslContext, Optional<com.google.common.net.HostAndPort> socksProxy, io.airlift.units.Duration timeout, HiveMetastoreAuthentication metastoreAuthentication, String hostname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThriftMetastoreClientcreate(com.google.common.net.HostAndPort address, Optional<String> delegationToken)protected ThriftMetastoreClientcreate(org.apache.thrift.transport.TTransport transport, String hostname)
-
-
-
Constructor Detail
-
DefaultThriftMetastoreClientFactory
public DefaultThriftMetastoreClientFactory(Optional<SSLContext> sslContext, Optional<com.google.common.net.HostAndPort> socksProxy, io.airlift.units.Duration timeout, HiveMetastoreAuthentication metastoreAuthentication, String hostname)
-
DefaultThriftMetastoreClientFactory
@Inject public DefaultThriftMetastoreClientFactory(ThriftMetastoreConfig config, HiveMetastoreAuthentication metastoreAuthentication, NodeManager nodeManager)
-
-
Method Detail
-
create
public ThriftMetastoreClient create(com.google.common.net.HostAndPort address, Optional<String> delegationToken) throws org.apache.thrift.transport.TTransportException
- Specified by:
createin interfaceThriftMetastoreClientFactory- Throws:
org.apache.thrift.transport.TTransportException
-
create
protected ThriftMetastoreClient create(org.apache.thrift.transport.TTransport transport, String hostname)
-
-