public abstract class BaseEncoder extends Object implements 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(KeyValue 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(KeyValue cell) throws IOException
Encoder
write
in interface Encoder
cell
- cell to serializeIOException
protected void checkFlushed() throws CodecException
CodecException
public void flush() throws IOException
Encoder
flush
in interface Encoder
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.