@InterfaceAudience.Private public class RowIndexCodecV1 extends AbstractDataBlockEncoder
| Modifier and Type | Class and Description | 
|---|---|
| private static class  | RowIndexCodecV1.RowIndexEncodingState | 
AbstractDataBlockEncoder.AbstractEncodedSeekerDataBlockEncoder.EncodedSeeker| Constructor and Description | 
|---|
| RowIndexCodecV1() | 
| Modifier and Type | Method and Description | 
|---|---|
| DataBlockEncoder.EncodedSeeker | createSeeker(HFileBlockDecodingContext decodingCtx)Create a HFileBlock seeker which find KeyValues within a block. | 
| ByteBuffer | decodeKeyValues(DataInputStream source,
               HFileBlockDecodingContext decodingCtx)Decode. | 
| void | encode(Cell cell,
      HFileBlockEncodingContext encodingCtx,
      DataOutputStream out)Encodes a KeyValue. | 
| void | endBlockEncoding(HFileBlockEncodingContext encodingCtx,
                DataOutputStream out,
                byte[] uncompressedBytesWithHeader)Ends encoding for a block of KeyValues. | 
| Cell | getFirstKeyCellInBlock(ByteBuff block)Return first key in block as a cell. | 
| void | startBlockEncoding(HFileBlockEncodingContext blkEncodingCtx,
                  DataOutputStream out)Starts encoding for a block of KeyValues. | 
createFirstKeyCell, newDataBlockDecodingContext, newDataBlockEncodingContext, postEncodingpublic RowIndexCodecV1()
public void startBlockEncoding(HFileBlockEncodingContext blkEncodingCtx, DataOutputStream out) throws IOException
DataBlockEncoderDataBlockEncoder.endBlockEncoding(HFileBlockEncodingContext, DataOutputStream, byte[]) to finish
 encoding of a block.IOExceptionpublic void encode(Cell cell, HFileBlockEncodingContext encodingCtx, DataOutputStream out) throws IOException
DataBlockEncoderEncodingState.postCellEncode(int, int) needs to be called to keep
 track of the encoded and unencoded data sizeIOExceptionpublic void endBlockEncoding(HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader) throws IOException
DataBlockEncoderIOExceptionpublic ByteBuffer decodeKeyValues(DataInputStream source, HFileBlockDecodingContext decodingCtx) throws IOException
DataBlockEncodersource - Compressed stream of KeyValues.IOException - If there is an error in source.public Cell getFirstKeyCellInBlock(ByteBuff block)
DataBlockEncoderblock - encoded block we want index, the position will not changepublic DataBlockEncoder.EncodedSeeker createSeeker(HFileBlockDecodingContext decodingCtx)
DataBlockEncoderCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.