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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidflush()Let the implementation decide what to do.protected OutputStreamabstract voidImplementation must copy the entire state of the Cell.
-
Field Details
-
out
-
flushed
-
-
Constructor Details
-
BaseEncoder
-
-
Method Details
-
getOuputStream
-
write
Description copied from interface:CellOutputStreamImplementation 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:
writein interfaceCellOutputStream- Parameters:
cell- Cell to write out- Throws:
IOException
-
checkFlushed
- Throws:
CodecException
-
flush
Description copied from interface:CellOutputStreamLet 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:
flushin interfaceCellOutputStream- Throws:
IOException
-