@InterfaceAudience.Private public class BlockCacheKey extends Object implements HeapSize, Serializable
BlockCache
Modifier and Type | Field and Description |
---|---|
static long |
FIXED_OVERHEAD |
private String |
hfileName |
private boolean |
isPrimaryReplicaBlock |
private long |
offset |
private static long |
serialVersionUID |
Constructor and Description |
---|
BlockCacheKey(String hfileName,
long offset)
Construct a new BlockCacheKey
|
BlockCacheKey(String hfileName,
long offset,
boolean isPrimaryReplica) |
private static final long serialVersionUID
private final String hfileName
private final long offset
private final boolean isPrimaryReplicaBlock
public static final long FIXED_OVERHEAD
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–2019 The Apache Software Foundation. All rights reserved.