public class CacheManager extends Object
MemorySegments.| 限定符和类型 | 字段和说明 |
|---|---|
static int |
REFRESH_COUNT
Refreshing the cache comes with some costs, so not every time we visit the CacheManager, but
every 10 visits, refresh the LRU strategy.
|
| 构造器和说明 |
|---|
CacheManager(MemorySize maxMemorySize) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.paimon.shade.caffeine2.com.github.benmanes.caffeine.cache.Cache<CacheKey,org.apache.paimon.io.cache.CacheManager.CacheValue> |
cache() |
int |
fileReadCount() |
MemorySegment |
getPage(CacheKey key,
CacheReader reader,
CacheCallback callback) |
void |
invalidPage(CacheKey key) |
public static final int REFRESH_COUNT
public CacheManager(MemorySize maxMemorySize)
@VisibleForTesting public org.apache.paimon.shade.caffeine2.com.github.benmanes.caffeine.cache.Cache<CacheKey,org.apache.paimon.io.cache.CacheManager.CacheValue> cache()
public MemorySegment getPage(CacheKey key, CacheReader reader, CacheCallback callback)
public void invalidPage(CacheKey key)
public int fileReadCount()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.