@InterfaceAudience.Private public class SharedMemHFileBlock extends HFileBlock
ByteBuffAllocator won't allocate pooled heap ByteBuff now; at the same time,
if allocate an off-heap ByteBuff from allocator, then it must be a pooled one. That's to
say, an exclusive memory HFileBlock would must be an heap block and a shared memory HFileBlock
would must be an off-heap block.ExclusiveMemHFileBlockHFileBlock.BlockDeserializerBLOCK_DESERIALIZER, BLOCK_METADATA_SPACE, DONT_FILL_HEADER, FILL_HEADER, FIXED_OVERHEAD, MULTI_BYTE_BUFFER_HEAP_SIZE| Modifier and Type | Method and Description |
|---|---|
boolean |
isSharedMem()
Will be override by
SharedMemHFileBlock or ExclusiveMemHFileBlock. |
equals, getBlockType, getBufferReadOnly, getBufferWithoutHeader, getByteBuffAllocator, getDeserializer, getHFileContext, getMetaData, getOnDiskSizeWithHeader, getSerializedLength, hashCode, headerSize, headerSize, heapSize, isUnpacked, refCnt, release, retain, serialize, toString, touch, touchclone, finalize, getClass, notify, notifyAll, wait, wait, waitrelease, retainpublic boolean isSharedMem()
HFileBlockSharedMemHFileBlock or ExclusiveMemHFileBlock. Return true
by default.isSharedMem in class HFileBlockCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.