Class TestCellBlockBuilder

java.lang.Object
org.apache.hadoop.hbase.ipc.TestCellBlockBuilder

public class TestCellBlockBuilder extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.hadoop.hbase.ipc.CellBlockBuilder
     
    static final HBaseClassTestRule
     
    private static final String
     
    private static final org.slf4j.Logger
     
    private static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    (package private) static void
    doBuildCellBlockUndoCellBlock(org.apache.hadoop.hbase.ipc.CellBlockBuilder builder, org.apache.hadoop.hbase.codec.Codec codec, org.apache.hadoop.io.compress.CompressionCodec compressor)
     
    (package private) static void
    doBuildCellBlockUndoCellBlock(org.apache.hadoop.hbase.ipc.CellBlockBuilder builder, org.apache.hadoop.hbase.codec.Codec codec, org.apache.hadoop.io.compress.CompressionCodec compressor, int count, int size, boolean sized)
     
    (package private) static org.apache.hadoop.hbase.ExtendedCell[]
    getCells(int howMany)
     
    (package private) static org.apache.hadoop.hbase.ExtendedCell[]
    getCells(int howMany, int valueSize)
     
    (package private) static org.apache.hadoop.hbase.ExtendedCellScanner
    getSizedCellScanner(org.apache.hadoop.hbase.ExtendedCell[] cells)
     
    static void
    main(String[] args)
    For running a few tests of methods herein.
    void
     
    private static void
    timerTest(org.apache.hadoop.hbase.ipc.CellBlockBuilder builder, int count, int size, org.apache.hadoop.hbase.codec.Codec codec, org.apache.hadoop.io.compress.CompressionCodec compressor, boolean sized)
     
    private static void
    timerTests(org.apache.hadoop.hbase.ipc.CellBlockBuilder builder, int count, int size, org.apache.hadoop.hbase.codec.Codec codec, org.apache.hadoop.io.compress.CompressionCodec compressor)
     
    private static void
    usage(int errorCode)
    Prints usage and then exits w/ passed errCode

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • Method Details

    • before

      public void before()
    • testBuildCellBlock

      public void testBuildCellBlock() throws IOException
      Throws:
      IOException
    • doBuildCellBlockUndoCellBlock

      static void doBuildCellBlockUndoCellBlock(org.apache.hadoop.hbase.ipc.CellBlockBuilder builder, org.apache.hadoop.hbase.codec.Codec codec, org.apache.hadoop.io.compress.CompressionCodec compressor) throws IOException
      Throws:
      IOException
    • doBuildCellBlockUndoCellBlock

      static void doBuildCellBlockUndoCellBlock(org.apache.hadoop.hbase.ipc.CellBlockBuilder builder, org.apache.hadoop.hbase.codec.Codec codec, org.apache.hadoop.io.compress.CompressionCodec compressor, int count, int size, boolean sized) throws IOException
      Throws:
      IOException
    • getSizedCellScanner

      static org.apache.hadoop.hbase.ExtendedCellScanner getSizedCellScanner(org.apache.hadoop.hbase.ExtendedCell[] cells)
    • getCells

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

      static org.apache.hadoop.hbase.ExtendedCell[] getCells(int howMany, int valueSize)
    • usage

      private static void usage(int errorCode)
      Prints usage and then exits w/ passed errCode
      Parameters:
      errorCode - the error code to use to exit the application
    • timerTests

      private static void timerTests(org.apache.hadoop.hbase.ipc.CellBlockBuilder builder, int count, int size, org.apache.hadoop.hbase.codec.Codec codec, org.apache.hadoop.io.compress.CompressionCodec compressor) throws IOException
      Throws:
      IOException
    • timerTest

      private static void timerTest(org.apache.hadoop.hbase.ipc.CellBlockBuilder builder, int count, int size, org.apache.hadoop.hbase.codec.Codec codec, org.apache.hadoop.io.compress.CompressionCodec compressor, boolean sized) throws IOException
      Throws:
      IOException
    • main

      public static void main(String[] args) throws IOException
      For running a few tests of methods herein.
      Parameters:
      args - the arguments to use for the timer test
      Throws:
      IOException - if creating the build fails