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
-
Field Summary
Modifier and TypeFieldDescriptionprivate ExtendedCell
protected final InputStream
protected static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
advance()
Advance the scanner 1 cell.current()
Returns the current Cell which may be mutableprotected InputStream
protected abstract ExtendedCell
Extract a Cell.private void
-
Field Details
-
LOG
-
in
-
current
-
-
Constructor Details
-
BaseDecoder
-
-
Method Details
-
advance
Description copied from interface:CellScanner
Advance the scanner 1 cell.- Specified by:
advance
in 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:CellScanner
Returns the current Cell which may be mutable- Specified by:
current
in interfaceCellScanner
- Specified by:
current
in interfaceExtendedCellScanner
-