|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.codec.prefixtree.PrefixTreeCodec
@InterfaceAudience.Private public class PrefixTreeCodec
This class is created via reflection in DataBlockEncoding enum. Update the enum if class name or package changes.
PrefixTreeDataBlockEncoder implementation of DataBlockEncoder. This is the primary entry point for PrefixTree encoding and decoding. Encoding is delegated to instances ofPrefixTreeEncoder, and decoding is delegated to instances of
CellSearcher. Encoder and decoder instances are
created and recycled by static PtEncoderFactory and PtDecoderFactory.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.io.encoding.DataBlockEncoder |
|---|
DataBlockEncoder.EncodedSeeker |
| Constructor Summary | |
|---|---|
PrefixTreeCodec()
no-arg constructor for reflection |
|
| Method Summary | |
|---|---|
DataBlockEncoder.EncodedSeeker |
createSeeker(KeyValue.KVComparator comparator,
boolean includesMvccVersion)
Is this the correct handling of an illegal comparator? How to prevent that from getting all the way to this point. |
ByteBuffer |
decodeKeyValues(DataInputStream source,
boolean includesMvccVersion)
|
ByteBuffer |
decodeKeyValues(DataInputStream source,
int allocateHeaderLength,
int skipLastBytes,
boolean includesMvccVersion)
I don't think this method is called during normal HBase operation, so efficiency is not important. |
void |
encodeKeyValues(ByteBuffer in,
boolean includesMvccVersion,
HFileBlockEncodingContext blkEncodingCtx)
Copied from BufferedDataBlockEncoder. |
ByteBuffer |
getFirstKeyInBlock(ByteBuffer block)
|
HFileBlockDecodingContext |
newDataBlockDecodingContext(Compression.Algorithm compressionAlgorithm)
|
HFileBlockEncodingContext |
newDataBlockEncodingContext(Compression.Algorithm compressionAlgorithm,
DataBlockEncoding encoding,
byte[] header)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrefixTreeCodec()
| Method Detail |
|---|
public void encodeKeyValues(ByteBuffer in,
boolean includesMvccVersion,
HFileBlockEncodingContext blkEncodingCtx)
throws IOException
encodeKeyValues in interface DataBlockEncoderIOException
public ByteBuffer decodeKeyValues(DataInputStream source,
boolean includesMvccVersion)
throws IOException
decodeKeyValues in interface DataBlockEncoderIOException
public ByteBuffer decodeKeyValues(DataInputStream source,
int allocateHeaderLength,
int skipLastBytes,
boolean includesMvccVersion)
throws IOException
decodeKeyValues in interface DataBlockEncoderIOExceptionpublic ByteBuffer getFirstKeyInBlock(ByteBuffer block)
getFirstKeyInBlock in interface DataBlockEncoder
public HFileBlockEncodingContext newDataBlockEncodingContext(Compression.Algorithm compressionAlgorithm,
DataBlockEncoding encoding,
byte[] header)
newDataBlockEncodingContext in interface DataBlockEncoderpublic HFileBlockDecodingContext newDataBlockDecodingContext(Compression.Algorithm compressionAlgorithm)
newDataBlockDecodingContext in interface DataBlockEncoder
public DataBlockEncoder.EncodedSeeker createSeeker(KeyValue.KVComparator comparator,
boolean includesMvccVersion)
createSeeker in interface DataBlockEncoder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||