Package io.trino.plugin.hive.fs
Class CachingDirectoryLister
java.lang.Object
io.trino.plugin.hive.fs.CachingDirectoryLister
- All Implemented Interfaces:
DirectoryLister,TableInvalidationCallback
-
Constructor Summary
ConstructorsConstructorDescriptionCachingDirectoryLister(io.airlift.units.Duration expireAfterWrite, io.airlift.units.DataSize maxSize, List<String> tables) CachingDirectoryLister(HiveConfig hiveClientConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidlonglonglongvoidinvalidate(Partition partition) voidinvalidate(Table table) listFilesRecursively(TrinoFileSystem fs, Table table, Location location)
-
Constructor Details
-
CachingDirectoryLister
-
CachingDirectoryLister
-
-
Method Details
-
listFilesRecursively
public RemoteIterator<TrinoFileStatus> listFilesRecursively(TrinoFileSystem fs, Table table, Location location) throws IOException - Specified by:
listFilesRecursivelyin interfaceDirectoryLister- Throws:
IOException
-
invalidate
- Specified by:
invalidatein interfaceTableInvalidationCallback
-
invalidate
- Specified by:
invalidatein interfaceTableInvalidationCallback
-
flushCache
public void flushCache() -
getHitRate
-
getMissRate
-
getHitCount
public long getHitCount() -
getMissCount
public long getMissCount() -
getRequestCount
public long getRequestCount()
-