@InterfaceAudience.Private public abstract class BaseEncoder extends Object implements Codec.Encoder
Modifier and Type | Field and Description |
---|---|
protected boolean |
flushed |
protected OutputStream |
out |
Constructor and Description |
---|
BaseEncoder(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkFlushed() |
void |
flush()
Let the implementation decide what to do.
|
abstract void |
write(Cell cell)
Implementation must copy the entire state of the Cell.
|
protected final OutputStream out
protected boolean flushed
public BaseEncoder(OutputStream out)
public abstract void write(Cell cell) throws IOException
CellOutputStream
write
in interface CellOutputStream
cell
- Cell to write outIOException
protected void checkFlushed() throws CodecException
CodecException
public void flush() throws IOException
CellOutputStream
flush
in interface CellOutputStream
IOException