@InterfaceAudience.Private public interface HFileBlockEncodingContext
for decoding
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases the resources used.
|
Bytes |
compressAndEncrypt(byte[] data,
int offset,
int length)
Compress and encrypt the supplied encoded block data with header.
|
BlockType |
getBlockType()
Returns the block type after encoding
|
DataBlockEncoding |
getDataBlockEncoding()
Returns the
DataBlockEncoding encoding used |
EncodingState |
getEncodingState()
Returns the encoding state
|
HFileContext |
getHFileContext()
Returns HFile context information
|
void |
postEncoding(BlockType blockType)
Do any action that needs to be performed after the encoding.
|
void |
setEncodingState(EncodingState state)
Sets the encoding state.
|
BlockType getBlockType()
DataBlockEncoding getDataBlockEncoding()
DataBlockEncoding
encoding usedvoid postEncoding(BlockType blockType) throws IOException
IOException
void close()
HFileContext getHFileContext()
void setEncodingState(EncodingState state)
EncodingState getEncodingState()
Bytes compressAndEncrypt(byte[] data, int offset, int length) throws IOException
data
- encoded bytes with headeroffset
- the offset in encoded data to start atlength
- the number of encoded bytesIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.