Package io.trino.plugin.hive
Class CachingDirectoryLister
- java.lang.Object
-
- io.trino.plugin.hive.CachingDirectoryLister
-
- All Implemented Interfaces:
DirectoryLister
public class CachingDirectoryLister extends Object implements DirectoryLister
-
-
Constructor Summary
Constructors Constructor Description CachingDirectoryLister(io.airlift.units.Duration expireAfterWrite, long maxSize, List<String> tables)CachingDirectoryLister(HiveConfig hiveClientConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushCache()longgetHitCount()DoublegetHitRate()longgetMissCount()DoublegetMissRate()longgetRequestCount()org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus>list(org.apache.hadoop.fs.FileSystem fs, Table table, org.apache.hadoop.fs.Path path)
-
-
-
Constructor Detail
-
CachingDirectoryLister
@Inject public CachingDirectoryLister(HiveConfig hiveClientConfig)
-
-
Method Detail
-
list
public org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.LocatedFileStatus> list(org.apache.hadoop.fs.FileSystem fs, Table table, org.apache.hadoop.fs.Path path) throws IOException- Specified by:
listin interfaceDirectoryLister- Throws:
IOException
-
flushCache
public void flushCache()
-
getHitRate
public Double getHitRate()
-
getMissRate
public Double getMissRate()
-
getHitCount
public long getHitCount()
-
getMissCount
public long getMissCount()
-
getRequestCount
public long getRequestCount()
-
-