Package org.apache.hadoop.hbase.codec
Class CodecPerformance
java.lang.Object
org.apache.hadoop.hbase.codec.CodecPerformance
Do basic codec performance eval.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static void
doCodec
(org.apache.hadoop.hbase.codec.Codec codec, org.apache.hadoop.hbase.ExtendedCell[] cells, int cycles, int count, int initialBufferSize) (package private) static org.apache.hadoop.hbase.ExtendedCell[]
getCells
(int howMany) (package private) static int
getRoughSize
(org.apache.hadoop.hbase.Cell[] cells) static void
(package private) static org.apache.hadoop.hbase.ExtendedCell[]
runDecoderTest
(int index, int count, org.apache.hadoop.hbase.ExtendedCellScanner decoder) (package private) static byte[]
runEncoderTest
(int index, int initialBufferSize, ByteArrayOutputStream baos, org.apache.hadoop.hbase.io.CellOutputStream encoder, org.apache.hadoop.hbase.ExtendedCell[] cells) (package private) static void
verifyCells
(org.apache.hadoop.hbase.Cell[] input, org.apache.hadoop.hbase.Cell[] output)
-
Field Details
-
LOG
-
-
Constructor Details
-
CodecPerformance
public CodecPerformance()
-
-
Method Details
-
getCells
-
getRoughSize
-
runEncoderTest
static byte[] runEncoderTest(int index, int initialBufferSize, ByteArrayOutputStream baos, org.apache.hadoop.hbase.io.CellOutputStream encoder, org.apache.hadoop.hbase.ExtendedCell[] cells) throws IOException - Throws:
IOException
-
runDecoderTest
static org.apache.hadoop.hbase.ExtendedCell[] runDecoderTest(int index, int count, org.apache.hadoop.hbase.ExtendedCellScanner 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.ExtendedCell[] cells, int cycles, int count, int initialBufferSize) throws IOException - Throws:
IOException
-
main
- Throws:
IOException
-