private static final class TinyLfuBlockCache.CachedBlockView extends Object implements CachedBlock
| Modifier and Type | Field and Description |
|---|---|
private static Comparator<CachedBlock> |
COMPARATOR |
private BlockCacheKey |
key |
private long |
now |
private Cacheable |
value |
| Constructor and Description |
|---|
CachedBlockView(BlockCacheKey key,
Cacheable value,
long now) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CachedBlock other) |
boolean |
equals(Object obj) |
BlockPriority |
getBlockPriority() |
BlockType |
getBlockType() |
long |
getCachedTime() |
String |
getFilename() |
long |
getOffset() |
long |
getSize() |
int |
hashCode() |
String |
toString() |
private static final Comparator<CachedBlock> COMPARATOR
private final BlockCacheKey key
private final long now
public CachedBlockView(BlockCacheKey key, Cacheable value, long now)
public BlockPriority getBlockPriority()
getBlockPriority in interface CachedBlockpublic BlockType getBlockType()
getBlockType in interface CachedBlockpublic long getOffset()
getOffset in interface CachedBlockpublic long getSize()
getSize in interface CachedBlockpublic long getCachedTime()
getCachedTime in interface CachedBlockpublic String getFilename()
getFilename in interface CachedBlockpublic int compareTo(CachedBlock other)
compareTo in interface Comparable<CachedBlock>Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.