public abstract class LlapCacheableBuffer extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
IN_LIST |
int |
indexInHeap
Index in heap for LRFU/LFU cache policies.
|
long |
lastUpdate
Last priority update time for cache policy (should be pretty universal).
|
LlapCacheableBuffer |
next
Linked list pointers for LRFU/LRU cache policies.
|
protected static int |
NOT_IN_CACHE |
LlapCacheableBuffer |
prev
Linked list pointers for LRFU/LRU cache policies.
|
double |
priority
Priority for cache policy (should be pretty universal).
|
Constructor and Description |
---|
LlapCacheableBuffer() |
Modifier and Type | Method and Description |
---|---|
abstract long |
getMemoryUsage() |
protected abstract boolean |
invalidate() |
protected abstract boolean |
isLocked() |
abstract void |
notifyEvicted(EvictionDispatcher evictionDispatcher) |
String |
toString() |
String |
toStringForCache() |
protected static final int IN_LIST
protected static final int NOT_IN_CACHE
public double priority
public long lastUpdate
public LlapCacheableBuffer prev
public LlapCacheableBuffer next
public int indexInHeap
protected abstract boolean invalidate()
public abstract long getMemoryUsage()
public abstract void notifyEvicted(EvictionDispatcher evictionDispatcher)
public String toStringForCache()
protected abstract boolean isLocked()
Copyright © 2016 The Apache Software Foundation. All rights reserved.