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 ClassesModifier and TypeClassDescriptionclassNested classes/interfaces inherited from interface io.trino.plugin.hive.metastore.HiveMetastoreFactory
HiveMetastoreFactory.StaticHiveMetastoreFactory -
Constructor Summary
ConstructorsConstructorDescriptionImpersonationCachingHiveMetastoreFactory(HiveMetastoreFactory metastoreFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateMetastore(Optional<ConnectorIdentity> identity) Create a metastore instance for the identity.voidboolean
-
Constructor Details
-
ImpersonationCachingHiveMetastoreFactory
-
-
Method Details
-
isImpersonationEnabled
public boolean isImpersonationEnabled()- Specified by:
isImpersonationEnabledin interfaceHiveMetastoreFactory
-
createMetastore
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() -
getAllTableNamesStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getAllTableNamesStats() -
getTableWithParameterStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getTableWithParameterStats() -
getTableStatisticsStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getTableStatisticsStats() -
getPartitionStatisticsStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getPartitionStatisticsStats() -
getViewNamesStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getViewNamesStats() -
getAllViewNamesStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getAllViewNamesStats() -
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()
-