@InterfaceAudience.Private public class BlockCacheKey extends Object implements HeapSize, Serializable
BlockCache| Modifier and Type | Field and Description |
|---|---|
static long |
FIXED_OVERHEAD |
| Constructor and Description |
|---|
BlockCacheKey(String hfileName,
long offset)
Construct a new BlockCacheKey
|
BlockCacheKey(String hfileName,
long offset,
boolean isPrimaryReplica) |
public BlockCacheKey(String hfileName, long offset)
hfileName - The name of the HFile this block belongs to.offset - Offset of the block into the filepublic BlockCacheKey(String hfileName, long offset, boolean isPrimaryReplica)
public long heapSize()
public String getHfileName()
public boolean isPrimary()
public long getOffset()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.