Package org.apache.hadoop.hbase.codec
Class BaseDecoder
java.lang.Object
org.apache.hadoop.hbase.codec.BaseDecoder
- All Implemented Interfaces:
CellScanner
,Codec.Decoder
- 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
TODO javadoc
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate Cell
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 Cell
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
-