Class SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory
java.lang.Object
io.trino.plugin.hive.metastore.cache.SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory
- All Implemented Interfaces:
HiveMetastoreFactory
- Enclosing class:
SharedHiveMetastoreCache
public static 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(Function<String, CachingHiveMetastore> cachingHiveMetastoreFactory, io.airlift.units.Duration userCacheTtl, long userCacheMaximumSize) -
Method Summary
Modifier and TypeMethodDescriptioncreateMetastore(Optional<ConnectorIdentity> identity) Create a metastore instance for the identity.voidbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.plugin.hive.metastore.HiveMetastoreFactory
hasBuiltInCaching
-
Constructor Details
-
ImpersonationCachingHiveMetastoreFactory
public ImpersonationCachingHiveMetastoreFactory(Function<String, CachingHiveMetastore> cachingHiveMetastoreFactory, io.airlift.units.Duration userCacheTtl, long userCacheMaximumSize)
-
-
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() -
getTablesStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getTablesStats() -
getTableColumnStatisticsCache
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getTableColumnStatisticsCache() -
getPartitionStatisticsStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getPartitionStatisticsStats() -
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() -
getConfigValuesStats
public SharedHiveMetastoreCache.ImpersonationCachingHiveMetastoreFactory.AggregateCacheStatsMBean getConfigValuesStats()
-