Package org.apache.hadoop.hbase.codec
Class BaseDecoder
java.lang.Object
org.apache.hadoop.hbase.codec.BaseDecoder
- All Implemented Interfaces:
CellScanner,Codec.Decoder,ExtendedCellScanner
- Direct Known Subclasses:
CellCodec.CellDecoder,CellCodecWithTags.CellDecoder,KeyValueCodec.KeyValueDecoder,KeyValueCodecWithTags.KeyValueDecoder,MessageCodec.MessageDecoder,WALCellCodec.CompressedKvDecoder
@LimitedPrivate({"Coprocesssor","Phoenix"})
public abstract class BaseDecoder
extends Object
implements Codec.Decoder
Base implementation for
Codec.Decoder.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ExtendedCellprotected final InputStreamprotected static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadvance()Advance the scanner 1 cell.current()Returns the current Cell which may be mutableprotected InputStreamprotected abstract ExtendedCellExtract a Cell.private void
-
Field Details
-
LOG
-
in
-
current
-
-
Constructor Details
-
BaseDecoder
-
-
Method Details
-
advance
Description copied from interface:CellScannerAdvance the scanner 1 cell.- Specified by:
advancein interfaceCellScanner- Returns:
- true if the next cell is found and
CellScanner.current()will return a valid Cell - Throws:
IOException- if advancing the scanner fails
-
rethrowEofException
- Throws:
IOException
-
getInputStream
-
parseCell
Extract a Cell.- 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
-
current
Description copied from interface:CellScannerReturns the current Cell which may be mutable- Specified by:
currentin interfaceCellScanner- Specified by:
currentin interfaceExtendedCellScanner
-