public class CachingDirectoryLister extends Object implements DirectoryLister
| Modifier and Type | Field and Description |
|---|---|
protected DirectoryLister |
delegate |
| Constructor and Description |
|---|
CachingDirectoryLister(DirectoryLister delegate,
io.airlift.units.Duration expireAfterWrite,
long maxSize,
List<String> tables) |
CachingDirectoryLister(DirectoryLister delegate,
HiveClientConfig hiveClientConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushCache() |
long |
getHitCount() |
Double |
getHitRate() |
long |
getMissCount() |
Double |
getMissRate() |
long |
getRequestCount() |
Iterator<com.facebook.presto.hive.HiveFileInfo> |
list(com.facebook.presto.hive.filesystem.ExtendedFileSystem fileSystem,
com.facebook.presto.hive.metastore.Table table,
org.apache.hadoop.fs.Path path,
Optional<com.facebook.presto.hive.metastore.Partition> partition,
NamenodeStats namenodeStats,
HiveDirectoryContext hiveDirectoryContext) |
protected final DirectoryLister delegate
@Inject public CachingDirectoryLister(DirectoryLister delegate, HiveClientConfig hiveClientConfig)
public CachingDirectoryLister(DirectoryLister delegate, io.airlift.units.Duration expireAfterWrite, long maxSize, List<String> tables)
public Iterator<com.facebook.presto.hive.HiveFileInfo> list(com.facebook.presto.hive.filesystem.ExtendedFileSystem fileSystem, com.facebook.presto.hive.metastore.Table table, org.apache.hadoop.fs.Path path, Optional<com.facebook.presto.hive.metastore.Partition> partition, NamenodeStats namenodeStats, HiveDirectoryContext hiveDirectoryContext)
list in interface DirectoryListerpublic void flushCache()
public Double getHitRate()
public Double getMissRate()
public long getHitCount()
public long getMissCount()
public long getRequestCount()
Copyright © 2012–2023. All rights reserved.