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 CachedBlock
public BlockType getBlockType()
getBlockType
in interface CachedBlock
public long getOffset()
getOffset
in interface CachedBlock
public long getSize()
getSize
in interface CachedBlock
public long getCachedTime()
getCachedTime
in interface CachedBlock
public String getFilename()
getFilename
in interface CachedBlock
public int compareTo(CachedBlock other)
compareTo
in interface Comparable<CachedBlock>
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.