public class LowLevelFifoCachePolicy extends Object implements LowLevelCachePolicy
Constructor and Description |
---|
LowLevelFifoCachePolicy(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
cache(LlapCacheableBuffer buffer,
LowLevelCache.Priority pri) |
String |
debugDumpForOom() |
long |
evictSomeBlocks(long memoryToReserve) |
void |
notifyLock(LlapCacheableBuffer buffer) |
void |
notifyUnlock(LlapCacheableBuffer buffer) |
void |
setEvictionListener(EvictionListener listener) |
void |
setParentDebugDumper(LlapOomDebugDump dumper) |
int |
tryEvictContiguousData(int allocationSize,
int count)
TODO: temporary method until we have a better allocator
|
public LowLevelFifoCachePolicy(org.apache.hadoop.conf.Configuration conf)
public void cache(LlapCacheableBuffer buffer, LowLevelCache.Priority pri)
cache
in interface LowLevelCachePolicy
public void notifyLock(LlapCacheableBuffer buffer)
notifyLock
in interface LowLevelCachePolicy
public void notifyUnlock(LlapCacheableBuffer buffer)
notifyUnlock
in interface LowLevelCachePolicy
public void setEvictionListener(EvictionListener listener)
setEvictionListener
in interface LowLevelCachePolicy
public void setParentDebugDumper(LlapOomDebugDump dumper)
setParentDebugDumper
in interface LowLevelCachePolicy
public long evictSomeBlocks(long memoryToReserve)
evictSomeBlocks
in interface LowLevelCachePolicy
public String debugDumpForOom()
debugDumpForOom
in interface LlapOomDebugDump
public int tryEvictContiguousData(int allocationSize, int count)
LowLevelCachePolicy
tryEvictContiguousData
in interface LowLevelCachePolicy
Copyright © 2016 The Apache Software Foundation. All rights reserved.