static class BucketCache.BucketEntry extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private long |
accessCounter |
private long |
cachedTime
Time this block was cached.
|
(package private) static Comparator<BucketCache.BucketEntry> |
COMPARATOR |
(package private) byte |
deserialiserIndex |
private int |
length |
private byte |
offset1 |
private int |
offsetBase |
private BlockPriority |
priority |
private static long |
serialVersionUID |
Constructor and Description |
---|
BucketEntry(long offset,
int length,
long accessCounter,
boolean inMemory) |
Modifier and Type | Method and Description |
---|---|
void |
access(long accessCounter)
Block has been accessed.
|
protected int |
decrementRefCountAndGet() |
protected CacheableDeserializer<Cacheable> |
deserializerReference(UniqueIndexMap<Integer> deserialiserMap) |
long |
getCachedTime() |
int |
getLength() |
BlockPriority |
getPriority() |
protected int |
getRefCount() |
protected int |
incrementRefCountAndGet() |
protected boolean |
isMarkedForEvict() |
protected void |
markForEvict() |
(package private) long |
offset() |
protected void |
setDeserialiserReference(CacheableDeserializer<Cacheable> deserializer,
UniqueIndexMap<Integer> deserialiserMap) |
private void |
setOffset(long value) |
private static final long serialVersionUID
static final Comparator<BucketCache.BucketEntry> COMPARATOR
private int offsetBase
private int length
private byte offset1
byte deserialiserIndex
private volatile long accessCounter
private BlockPriority priority
private final long cachedTime
BucketEntry(long offset, int length, long accessCounter, boolean inMemory)
long offset()
private void setOffset(long value)
public int getLength()
protected CacheableDeserializer<Cacheable> deserializerReference(UniqueIndexMap<Integer> deserialiserMap)
protected void setDeserialiserReference(CacheableDeserializer<Cacheable> deserializer, UniqueIndexMap<Integer> deserialiserMap)
public void access(long accessCounter)
public BlockPriority getPriority()
public long getCachedTime()
protected int getRefCount()
protected int incrementRefCountAndGet()
protected int decrementRefCountAndGet()
protected boolean isMarkedForEvict()
protected void markForEvict()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.