public class CacheManager extends Object
MemorySegment
s.Modifier and Type | Class and Description |
---|---|
static class |
CacheManager.SegmentContainer
The container for the segment.
|
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
CacheManager(Cache.CacheType cacheType,
MemorySize maxMemorySize,
double highPriorityPoolRatio) |
CacheManager(MemorySize maxMemorySize) |
CacheManager(MemorySize dataMaxMemorySize,
double highPriorityPoolRatio) |
Modifier and Type | Method and Description |
---|---|
Cache |
dataCache() |
int |
fileReadCount() |
MemorySegment |
getPage(CacheKey key,
CacheReader reader,
CacheCallback callback) |
Cache |
indexCache() |
void |
invalidPage(CacheKey key) |
public static final int REFRESH_COUNT
@VisibleForTesting public CacheManager(MemorySize maxMemorySize)
public CacheManager(MemorySize dataMaxMemorySize, double highPriorityPoolRatio)
public CacheManager(Cache.CacheType cacheType, MemorySize maxMemorySize, double highPriorityPoolRatio)
@VisibleForTesting public Cache dataCache()
@VisibleForTesting public Cache indexCache()
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.