Class WALCellCodec.CompressedKvDecoder
java.lang.Object
org.apache.hadoop.hbase.codec.BaseDecoder
org.apache.hadoop.hbase.regionserver.wal.WALCellCodec.CompressedKvDecoder
- All Implemented Interfaces:
CellScanner
,Codec.Decoder
,ExtendedCellScanner
- Enclosing class:
- WALCellCodec
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.codec.BaseDecoder
BaseDecoder.PBIS
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CompressionContext
private final boolean
private final boolean
Fields inherited from class org.apache.hadoop.hbase.codec.BaseDecoder
in, LOG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
checkLength
(int len, int max) protected ExtendedCell
Extract a Cell.private void
readCompressedValue
(InputStream in, byte[] outArray, int outOffset, int expectedLength) private int
readIntoArray
(byte[] to, int offset, Dictionary dict) Methods inherited from class org.apache.hadoop.hbase.codec.BaseDecoder
advance, current, getInputStream
-
Field Details
-
compression
-
hasValueCompression
-
hasTagCompression
-
-
Constructor Details
-
CompressedKvDecoder
-
-
Method Details
-
parseCell
Description copied from class:BaseDecoder
Extract a Cell.- Specified by:
parseCell
in classBaseDecoder
- Returns:
- a parsed Cell or throws an Exception. EOFException or a generic IOException maybe thrown if EOF is reached prematurely. Does not return null.
- Throws:
IOException
-
readIntoArray
- Throws:
IOException
-
checkLength
- Throws:
IOException
-
readCompressedValue
private void readCompressedValue(InputStream in, byte[] outArray, int outOffset, int expectedLength) throws IOException - Throws:
IOException
-