@InterfaceAudience.Private public class BlockCacheKey extends Object implements HeapSize, Serializable
BlockCache| 限定符和类型 | 字段和说明 |
|---|---|
static long |
FIXED_OVERHEAD |
| 构造器和说明 |
|---|
BlockCacheKey(String hfileName,
long offset)
Construct a new BlockCacheKey
|
BlockCacheKey(String hfileName,
long offset,
boolean isPrimaryReplica,
BlockType blockType) |
public BlockCacheKey(String hfileName, long offset)
hfileName - The name of the HFile this block belongs to.offset - Offset of the block into the filepublic long heapSize()
public String getHfileName()
public boolean isPrimary()
public long getOffset()
public BlockType getBlockType()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.