Class SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory
- java.lang.Object
-
- io.trino.plugin.hive.metastore.cache.SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory
-
- All Implemented Interfaces:
HiveMetastoreFactory
- Enclosing class:
- SharedHiveMetastoreCache
public class SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory extends Object implements HiveMetastoreFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean-
Nested classes/interfaces inherited from interface io.trino.plugin.hive.metastore.HiveMetastoreFactory
HiveMetastoreFactory.StaticHiveMetastoreFactory
-
-
Constructor Summary
Constructors Constructor Description ImpersonationCachingHiveMetastoreFactory(HiveMetastoreFactory metastoreFactory)
-
Method Summary
-
-
-
Constructor Detail
-
ImpersonationCachingHiveMetastoreFactory
public ImpersonationCachingHiveMetastoreFactory(HiveMetastoreFactory metastoreFactory)
-
-
Method Detail
-
isImpersonationEnabled
public boolean isImpersonationEnabled()
- Specified by:
isImpersonationEnabledin interfaceHiveMetastoreFactory
-
createMetastore
public HiveMetastore createMetastore(Optional<ConnectorIdentity> identity)
Description copied from interface:HiveMetastoreFactoryCreate a metastore instance for the identity. An empty identity will only be provided when impersonation is disabled, and global caching is enabled.- Specified by:
createMetastorein interfaceHiveMetastoreFactory
-
flushCache
public void flushCache()
-
getDatabaseStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getDatabaseStats()
-
getDatabaseNamesStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getDatabaseNamesStats()
-
getTableStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getTableStats()
-
getTableNamesStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getTableNamesStats()
-
getTableWithParameterStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getTableWithParameterStats()
-
getTableStatisticsStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getTableStatisticsStats()
-
getPartitionStatisticsStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getPartitionStatisticsStats()
-
getViewNamesStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getViewNamesStats()
-
getPartitionStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getPartitionStats()
-
getPartitionFilterStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getPartitionFilterStats()
-
getTablePrivilegesStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getTablePrivilegesStats()
-
getRolesStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getRolesStats()
-
getRoleGrantsStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getRoleGrantsStats()
-
getGrantedPrincipalsStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getGrantedPrincipalsStats()
-
getConfigValuesStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getConfigValuesStats()
-
-