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