org.apache.hadoop.hbase.codec
Class KeyValueCodec.KeyValueEncoder

java.lang.Object
  extended by org.apache.hadoop.hbase.codec.BaseEncoder
      extended by org.apache.hadoop.hbase.codec.KeyValueCodec.KeyValueEncoder
All Implemented Interfaces:
Encoder
Enclosing class:
KeyValueCodec

public static class KeyValueCodec.KeyValueEncoder
extends BaseEncoder


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.codec.BaseEncoder
flushed, out
 
Constructor Summary
KeyValueCodec.KeyValueEncoder(DataOutputStream out)
           
 
Method Summary
 void write(KeyValue kv)
          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

KeyValueCodec.KeyValueEncoder

public KeyValueCodec.KeyValueEncoder(DataOutputStream out)
Method Detail

write

public void write(KeyValue kv)
           throws IOException
Description copied from interface: Encoder
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 Encoder
Specified by:
write in class BaseEncoder
Parameters:
kv - cell to serialize
Throws:
IOException


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