@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
CellOutputStream
write
in interface CellOutputStream
cell
- Cell to write out nIOException
protected void checkFlushed() throws CodecException
CodecException
public void flush() throws IOException
CellOutputStream
flush
in interface CellOutputStream
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.