@InterfaceAudience.Private public abstract class AbstractDataBlockEncoder extends Object implements DataBlockEncoder
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractDataBlockEncoder.AbstractEncodedSeeker |
DataBlockEncoder.EncodedSeeker
Constructor and Description |
---|
AbstractDataBlockEncoder() |
Modifier and Type | Method and Description |
---|---|
protected Cell |
createFirstKeyCell(ByteBuffer key,
int keyLength) |
HFileBlockDecodingContext |
newDataBlockDecodingContext(HFileContext meta)
Creates an encoder specific decoding context, which will prepare the data
before actual decoding
|
HFileBlockEncodingContext |
newDataBlockEncodingContext(DataBlockEncoding encoding,
byte[] header,
HFileContext meta)
Creates a encoder specific encoding context
|
protected void |
postEncoding(HFileBlockEncodingContext encodingCtx) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSeeker, decodeKeyValues, encode, endBlockEncoding, getFirstKeyCellInBlock, startBlockEncoding
public HFileBlockEncodingContext newDataBlockEncodingContext(DataBlockEncoding encoding, byte[] header, HFileContext meta)
DataBlockEncoder
newDataBlockEncodingContext
in interface DataBlockEncoder
encoding
- encoding strategy usedheader
- header bytes to be written, put a dummy header here if the header
is unknownmeta
- HFile meta datapublic HFileBlockDecodingContext newDataBlockDecodingContext(HFileContext meta)
DataBlockEncoder
newDataBlockDecodingContext
in interface DataBlockEncoder
meta
- HFile meta dataprotected void postEncoding(HFileBlockEncodingContext encodingCtx) throws IOException
IOException
protected Cell createFirstKeyCell(ByteBuffer key, int keyLength)
Copyright © 2007–2019 Cloudera. All rights reserved.