@InterfaceAudience.Private public interface InlineBlockWriter
HFile
. Inline blocks are
interspersed with data blocks. For example, Bloom filter chunks and
leaf-level blocks of a multi-level block index are stored as inline blocks.Modifier and Type | Method and Description |
---|---|
void |
blockWritten(long offset,
int onDiskSize,
int uncompressedSize)
Called after a block has been written, and its offset, raw size, and
compressed size have been determined.
|
boolean |
getCacheOnWrite() |
BlockType |
getInlineBlockType()
The type of blocks this block writer produces.
|
boolean |
shouldWriteBlock(boolean closing)
Determines whether there is a new block to be written out.
|
void |
writeInlineBlock(DataOutput out)
Writes the block to the provided stream.
|
boolean shouldWriteBlock(boolean closing)
closing
- whether the file is being closed, in which case we need to write
out all available data and not wait to accumulate another blockvoid writeInlineBlock(DataOutput out) throws IOException
shouldWriteBlock(boolean)
returned true.out
- a stream (usually a compressing stream) to write the block toIOException
void blockWritten(long offset, int onDiskSize, int uncompressedSize)
offset
- the offset of the block in the streamonDiskSize
- the on-disk size of the blockuncompressedSize
- the uncompressed size of the blockBlockType getInlineBlockType()
boolean getCacheOnWrite()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.