@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"})
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. | 
| protected OutputStream | getOuputStream() | 
| 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)
protected OutputStream getOuputStream()
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 © 2007–2021 The Apache Software Foundation. All rights reserved.