Class CodecPerformance

java.lang.Object
org.apache.hadoop.hbase.codec.CodecPerformance

@Public public class CodecPerformance extends Object
Do basic codec performance eval.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
    Deprecated.
    LOG variable would be made private.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static void
    doCodec(org.apache.hadoop.hbase.codec.Codec codec, org.apache.hadoop.hbase.Cell[] cells, int cycles, int count, int initialBufferSize)
     
    (package private) static org.apache.hadoop.hbase.Cell[]
    getCells(int howMany)
     
    (package private) static int
    getRoughSize(org.apache.hadoop.hbase.Cell[] cells)
     
    static void
    main(String[] args)
     
    (package private) static org.apache.hadoop.hbase.Cell[]
    runDecoderTest(int index, int count, org.apache.hadoop.hbase.CellScanner decoder)
     
    (package private) static byte[]
    runEncoderTest(int index, int initialBufferSize, ByteArrayOutputStream baos, org.apache.hadoop.hbase.io.CellOutputStream encoder, org.apache.hadoop.hbase.Cell[] cells)
     
    (package private) static void
    verifyCells(org.apache.hadoop.hbase.Cell[] input, org.apache.hadoop.hbase.Cell[] output)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      @Deprecated public static final org.slf4j.Logger LOG
      Deprecated.
      LOG variable would be made private. since 1.2, remove in 3.0
  • Constructor Details

  • Method Details

    • getCells

      static org.apache.hadoop.hbase.Cell[] getCells(int howMany)
    • getRoughSize

      static int getRoughSize(org.apache.hadoop.hbase.Cell[] cells)
    • runEncoderTest

      static byte[] runEncoderTest(int index, int initialBufferSize, ByteArrayOutputStream baos, org.apache.hadoop.hbase.io.CellOutputStream encoder, org.apache.hadoop.hbase.Cell[] cells) throws IOException
      Throws:
      IOException
    • runDecoderTest

      static org.apache.hadoop.hbase.Cell[] runDecoderTest(int index, int count, org.apache.hadoop.hbase.CellScanner decoder) throws IOException
      Throws:
      IOException
    • verifyCells

      static void verifyCells(org.apache.hadoop.hbase.Cell[] input, org.apache.hadoop.hbase.Cell[] output)
    • doCodec

      static void doCodec(org.apache.hadoop.hbase.codec.Codec codec, org.apache.hadoop.hbase.Cell[] cells, int cycles, int count, int initialBufferSize) throws IOException
      Throws:
      IOException
    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException