@InterfaceAudience.Private public class HFileBlockBuilder extends Object
Modifier and Type | Field and Description |
---|---|
private ByteBuffAllocator |
allocator |
private BlockType |
blockType |
private ByteBuff |
buf |
private HFileContext |
fileContext |
private boolean |
fillHeader |
private boolean |
isShared |
private int |
nextBlockOnDiskSize |
private long |
offset |
private int |
onDiskDataSizeWithHeader |
private int |
onDiskSizeWithoutHeader |
private long |
prevBlockOffset |
private int |
uncompressedSizeWithoutHeader |
Constructor and Description |
---|
HFileBlockBuilder() |
Modifier and Type | Method and Description |
---|---|
HFileBlock |
build() |
HFileBlockBuilder |
withBlockType(BlockType blockType) |
HFileBlockBuilder |
withByteBuff(ByteBuff buf) |
HFileBlockBuilder |
withByteBuffAllocator(ByteBuffAllocator allocator) |
HFileBlockBuilder |
withFillHeader(boolean fillHeader) |
HFileBlockBuilder |
withHFileContext(HFileContext fileContext) |
HFileBlockBuilder |
withNextBlockOnDiskSize(int nextBlockOnDiskSize) |
HFileBlockBuilder |
withOffset(long offset) |
HFileBlockBuilder |
withOnDiskDataSizeWithHeader(int onDiskDataSizeWithHeader) |
HFileBlockBuilder |
withOnDiskSizeWithoutHeader(int onDiskSizeWithoutHeader) |
HFileBlockBuilder |
withPrevBlockOffset(long prevBlockOffset) |
HFileBlockBuilder |
withShared(boolean isShared) |
HFileBlockBuilder |
withUncompressedSizeWithoutHeader(int uncompressedSizeWithoutHeader) |
private int onDiskSizeWithoutHeader
private int onDiskDataSizeWithHeader
private int uncompressedSizeWithoutHeader
private long prevBlockOffset
private boolean fillHeader
private long offset
private int nextBlockOnDiskSize
private HFileContext fileContext
private ByteBuffAllocator allocator
private boolean isShared
public HFileBlockBuilder()
public HFileBlockBuilder withBlockType(BlockType blockType)
public HFileBlockBuilder withOnDiskSizeWithoutHeader(int onDiskSizeWithoutHeader)
public HFileBlockBuilder withOnDiskDataSizeWithHeader(int onDiskDataSizeWithHeader)
public HFileBlockBuilder withUncompressedSizeWithoutHeader(int uncompressedSizeWithoutHeader)
public HFileBlockBuilder withPrevBlockOffset(long prevBlockOffset)
public HFileBlockBuilder withByteBuff(ByteBuff buf)
public HFileBlockBuilder withFillHeader(boolean fillHeader)
public HFileBlockBuilder withOffset(long offset)
public HFileBlockBuilder withNextBlockOnDiskSize(int nextBlockOnDiskSize)
public HFileBlockBuilder withHFileContext(HFileContext fileContext)
public HFileBlockBuilder withByteBuffAllocator(ByteBuffAllocator allocator)
public HFileBlockBuilder withShared(boolean isShared)
public HFileBlock build()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.