Class CellCodec.CellEncoder

java.lang.Object
org.apache.hadoop.hbase.codec.BaseEncoder
org.apache.hadoop.hbase.codec.CellCodec.CellEncoder
All Implemented Interfaces:
Codec.Encoder, CellOutputStream
Enclosing class:
CellCodec

static class CellCodec.CellEncoder extends BaseEncoder
  • Constructor Details

  • Method Details

    • 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
      Specified by:
      write in class BaseEncoder
      Parameters:
      cell - Cell to write out
      Throws:
      IOException
    • write

      private void write(byte[] bytes, int offset, int length) throws IOException
      Write int length followed by array bytes.
      Throws:
      IOException