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.
|
static int |
INVALIDATE_ALREADY_INVALID |
static int |
INVALIDATE_FAILED |
static int |
INVALIDATE_OK |
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() |
abstract String |
getTag() |
protected abstract int |
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
public static final int INVALIDATE_OK
public static final int INVALIDATE_FAILED
public static final int INVALIDATE_ALREADY_INVALID
protected abstract int invalidate()
public abstract long getMemoryUsage()
public abstract void notifyEvicted(EvictionDispatcher evictionDispatcher)
public String toStringForCache()
public abstract String getTag()
protected abstract boolean isLocked()
Copyright © 2022 The Apache Software Foundation. All rights reserved.