Class TokenFetchingMetastoreClientFactory
java.lang.Object
io.trino.plugin.hive.metastore.thrift.TokenFetchingMetastoreClientFactory
- All Implemented Interfaces:
IdentityAwareMetastoreClientFactory
public class TokenFetchingMetastoreClientFactory
extends Object
implements IdentityAwareMetastoreClientFactory
-
Constructor Summary
ConstructorsConstructorDescriptionTokenFetchingMetastoreClientFactory(TokenAwareMetastoreClientFactory tokenAwareMetastoreClientFactory, UserNameProvider userNameProvider, ThriftMetastoreConfig thriftConfig) -
Method Summary
-
Constructor Details
-
TokenFetchingMetastoreClientFactory
@Inject public TokenFetchingMetastoreClientFactory(TokenAwareMetastoreClientFactory tokenAwareMetastoreClientFactory, UserNameProvider userNameProvider, ThriftMetastoreConfig thriftConfig)
-
-
Method Details
-
createMetastoreClientFor
public ThriftMetastoreClient createMetastoreClientFor(Optional<ConnectorIdentity> identity) throws org.apache.thrift.TException - Specified by:
createMetastoreClientForin interfaceIdentityAwareMetastoreClientFactory- Throws:
org.apache.thrift.TException
-