Package org.apache.hadoop.hbase.codec
Class BaseEncoder
java.lang.Object
org.apache.hadoop.hbase.codec.BaseEncoder
- All Implemented Interfaces:
Codec.Encoder
,CellOutputStream
- Direct Known Subclasses:
CellCodec.CellEncoder
,CellCodecWithTags.CellEncoder
,KeyValueCodec.KeyValueEncoder
,KeyValueCodecWithTags.KeyValueEncoder
,MessageCodec.MessageEncoder
,WALCellCodec.CompressedKvEncoder
,WALCellCodec.EnsureKvEncoder
@LimitedPrivate({"Coprocesssor","Phoenix"})
public abstract class BaseEncoder
extends Object
implements Codec.Encoder
TODO javadoc
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
flush()
Let the implementation decide what to do.protected OutputStream
abstract void
write
(ExtendedCell cell) Implementation must copy the entire state of the Cell.
-
Field Details
-
out
-
flushed
-
-
Constructor Details
-
BaseEncoder
-
-
Method Details
-
getOuputStream
-
write
Description copied from interface:CellOutputStream
Implementation must copy the entire state of the Cell. If the written Cell is modified immediately after the write method returns, the modifications must have absolutely no effect on the copy of the Cell that was added in the write.- Specified by:
write
in interfaceCellOutputStream
- Parameters:
cell
- Cell to write out- Throws:
IOException
-
checkFlushed
- Throws:
CodecException
-
flush
Description copied from interface:CellOutputStream
Let the implementation decide what to do. Usually means writing accumulated data into a byte[] that can then be read from the implementation to be sent to disk, put in the block cache, or sent over the network.- Specified by:
flush
in interfaceCellOutputStream
- Throws:
IOException
-