@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) public abstract class BaseEncoder extends Object implements Codec.Encoder
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
flushed |
protected OutputStream |
out |
构造器和说明 |
---|
BaseEncoder(OutputStream out) |
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 CellOutputStream
cell
- Cell to write outIOException
protected void checkFlushed() throws CodecException
CodecException
public void flush() throws IOException
CellOutputStream
flush
在接口中 CellOutputStream
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.