@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
CellOutputStreamwrite in interface CellOutputStreamcell - Cell to write outIOExceptionprotected void checkFlushed()
throws CodecException
CodecExceptionpublic void flush()
throws IOException
CellOutputStreamflush in interface CellOutputStreamIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.