@InterfaceAudience.Private public abstract class AbstractDataBlockEncoder extends Object implements DataBlockEncoder
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | AbstractDataBlockEncoder.AbstractEncodedSeekerDecorates 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(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, waitcreateSeeker, decodeKeyValues, encode, endBlockEncoding, getFirstKeyCellInBlock, startBlockEncodingpublic AbstractDataBlockEncoder()
public HFileBlockEncodingContext newDataBlockEncodingContext(DataBlockEncoding encoding, byte[] header, HFileContext meta)
DataBlockEncodernewDataBlockEncodingContext in interface DataBlockEncoderencoding - 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)
DataBlockEncodernewDataBlockDecodingContext in interface DataBlockEncodermeta - HFile meta dataprotected void postEncoding(HFileBlockEncodingContext encodingCtx) throws IOException
IOExceptionprotected Cell createFirstKeyCell(ByteBuffer key, int keyLength)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.