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<org.apache.paimon.io.cache.CacheManager.CacheKey,org.apache.paimon.io.cache.CacheManager.CacheValue> |
cache() |
int |
fileReadCount() |
MemorySegment |
getPage(RandomAccessFile file,
long readOffset,
int readLength,
java.util.function.BiConsumer<Long,Integer> cleanCallback) |
void |
invalidPage(RandomAccessFile file,
long readOffset,
int readLength) |
public static final int REFRESH_COUNT
public CacheManager(MemorySize maxMemorySize)
@VisibleForTesting public org.apache.paimon.shade.caffeine2.com.github.benmanes.caffeine.cache.Cache<org.apache.paimon.io.cache.CacheManager.CacheKey,org.apache.paimon.io.cache.CacheManager.CacheValue> cache()
public MemorySegment getPage(RandomAccessFile file, long readOffset, int readLength, java.util.function.BiConsumer<Long,Integer> cleanCallback)
public void invalidPage(RandomAccessFile file, long readOffset, int readLength)
public int fileReadCount()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.