@InterfaceAudience.Private public abstract class BaseEncoder extends java.lang.Object implements Codec.Encoder
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
flushed |
protected java.io.OutputStream |
out |
| Constructor and Description |
|---|
BaseEncoder(java.io.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.
|
public abstract void write(Cell cell) throws java.io.IOException
CellOutputStreamwrite in interface CellOutputStreamcell - Cell to write outjava.io.IOExceptionprotected void checkFlushed()
throws CodecException
CodecExceptionpublic void flush()
throws java.io.IOException
CellOutputStreamflush in interface CellOutputStreamjava.io.IOException