public interface LowLevelCache
Modifier and Type | Interface and Description |
---|---|
static class |
LowLevelCache.Priority |
Modifier and Type | Method and Description |
---|---|
DiskRangeList |
getFileData(Object fileKey,
DiskRangeList range,
long baseOffset,
DataCache.DiskRangeListFactory factory,
LowLevelCacheCounters qfCounters,
DataCache.BooleanRef gotAllData)
Gets file data for particular offsets.
|
void |
notifyEvicted(MemoryBuffer buffer)
Notifies the cache that a particular buffer should be removed due to eviction.
|
long[] |
putFileData(Object fileKey,
DiskRange[] ranges,
MemoryBuffer[] chunks,
long baseOffset,
LowLevelCache.Priority priority,
LowLevelCacheCounters qfCounters)
Puts file data into cache.
|
DiskRangeList getFileData(Object fileKey, DiskRangeList range, long baseOffset, DataCache.DiskRangeListFactory factory, LowLevelCacheCounters qfCounters, DataCache.BooleanRef gotAllData)
base
- base offset for the ranges (stripe/stream offset in case of ORC).long[] putFileData(Object fileKey, DiskRange[] ranges, MemoryBuffer[] chunks, long baseOffset, LowLevelCache.Priority priority, LowLevelCacheCounters qfCounters)
void notifyEvicted(MemoryBuffer buffer)
Copyright © 2016 The Apache Software Foundation. All rights reserved.