org.apache.hadoop.hbase.regionserver.wal
Class WALCellCodec.EnsureKvEncoder

java.lang.Object
  extended by org.apache.hadoop.hbase.codec.BaseEncoder
      extended by org.apache.hadoop.hbase.codec.KeyValueCodec.KeyValueEncoder
          extended by org.apache.hadoop.hbase.regionserver.wal.WALCellCodec.EnsureKvEncoder
All Implemented Interfaces:
Codec.Encoder, CellOutputStream
Enclosing class:
WALCellCodec

public class WALCellCodec.EnsureKvEncoder
extends KeyValueCodec.KeyValueEncoder


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.codec.BaseEncoder
flushed, out
 
Constructor Summary
WALCellCodec.EnsureKvEncoder(OutputStream out)
           
 
Method Summary
 void write(Cell cell)
          Implementation must copy the entire state of the Cell.
 
Methods inherited from class org.apache.hadoop.hbase.codec.BaseEncoder
checkFlushed, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WALCellCodec.EnsureKvEncoder

public WALCellCodec.EnsureKvEncoder(OutputStream out)
Method Detail

write

public void write(Cell cell)
           throws IOException
Description copied from interface: CellOutputStream
Implementation must copy the entire state of the Cell. If the written Cell is modified immediately after the write method returns, the modifications must have absolutely no effect on the copy of the Cell that was added in the write.

Specified by:
write in interface CellOutputStream
Overrides:
write in class KeyValueCodec.KeyValueEncoder
Parameters:
cell - Cell to write out
Throws:
IOException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.