@InterfaceAudience.Private
public interface HFileDataBlockEncoder
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
DATA_BLOCK_ENCODING
Type of encoding used for data blocks in HFile.
|
| Modifier and Type | Method and Description |
|---|---|
int |
encode(org.apache.hadoop.hbase.Cell cell,
org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext encodingCtx,
DataOutputStream out)
Encodes a KeyValue.
|
void |
endBlockEncoding(org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext encodingCtx,
DataOutputStream out,
byte[] uncompressedBytesWithHeader,
org.apache.hadoop.hbase.io.hfile.BlockType blockType)
Ends encoding for a block of KeyValues.
|
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding |
getDataBlockEncoding() |
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding |
getEffectiveEncodingInCache(boolean isCompaction) |
org.apache.hadoop.hbase.io.encoding.HFileBlockDecodingContext |
newDataBlockDecodingContext(org.apache.hadoop.hbase.io.hfile.HFileContext fileContext)
create a encoder specific decoding context for reading.
|
org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext |
newDataBlockEncodingContext(byte[] headerBytes,
org.apache.hadoop.hbase.io.hfile.HFileContext fileContext)
Create an encoder specific encoding context object for writing.
|
void |
saveMetadata(HFile.Writer writer)
Save metadata in HFile which will be written to disk
|
void |
startBlockEncoding(org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext encodingCtx,
DataOutputStream out)
Starts encoding for a block of KeyValues.
|
boolean |
useEncodedScanner()
Decides whether we should use a scanner over encoded blocks.
|
static final byte[] DATA_BLOCK_ENCODING
void startBlockEncoding(org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext encodingCtx,
DataOutputStream out)
throws IOException
endBlockEncoding(HFileBlockEncodingContext, DataOutputStream, byte[], BlockType)
to finish encoding of a block.encodingCtx - out - IOExceptionint encode(org.apache.hadoop.hbase.Cell cell,
org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext encodingCtx,
DataOutputStream out)
throws IOException
cell - encodingCtx - out - IOExceptionvoid endBlockEncoding(org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext encodingCtx,
DataOutputStream out,
byte[] uncompressedBytesWithHeader,
org.apache.hadoop.hbase.io.hfile.BlockType blockType)
throws IOException
encodingCtx - out - uncompressedBytesWithHeader - blockType - IOExceptionboolean useEncodedScanner()
void saveMetadata(HFile.Writer writer) throws IOException
writer - writer for a given HFileIOException - on disk problemsorg.apache.hadoop.hbase.io.encoding.DataBlockEncoding getDataBlockEncoding()
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding getEffectiveEncodingInCache(boolean isCompaction)
org.apache.hadoop.hbase.io.encoding.HFileBlockEncodingContext newDataBlockEncodingContext(byte[] headerBytes,
org.apache.hadoop.hbase.io.hfile.HFileContext fileContext)
headerBytes - header bytesfileContext - HFile meta dataHFileBlockEncodingContext objectorg.apache.hadoop.hbase.io.encoding.HFileBlockDecodingContext newDataBlockDecodingContext(org.apache.hadoop.hbase.io.hfile.HFileContext fileContext)
fileContext - - HFile meta dataHFileBlockDecodingContext objectCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.