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<HiveFileInfo> |
list(ExtendedFileSystem fileSystem,
Table table,
Path path,
Optional<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<HiveFileInfo> list(ExtendedFileSystem fileSystem, Table table, Path path, Optional<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.