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 |
---|
BucketCache.BucketEntry(long offset,
int length,
long accessCounter,
boolean inMemory) |
Modifier and Type | Method and Description |
---|---|
void |
access(long accessCounter)
Block has been accessed.
|
protected CacheableDeserializer<Cacheable> |
deserializerReference(UniqueIndexMap<Integer> deserialiserMap) |
long |
getCachedTime() |
int |
getLength() |
BlockPriority |
getPriority() |
(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
BucketCache.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()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.