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
ConstructorsConstructorDescriptionDefaultThriftMetastoreClientFactory(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
Modifier and TypeMethodDescriptionprotected ThriftMetastoreClientcreate(ThriftHiveMetastoreClient.TransportSupplier transportSupplier, String hostname)
-
Constructor Details
-
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 Details
-
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(ThriftHiveMetastoreClient.TransportSupplier transportSupplier, String hostname) throws org.apache.thrift.transport.TTransportException - Throws:
org.apache.thrift.transport.TTransportException
-