Package org.apache.hadoop.hbase.codec
Class CodecPerformance
java.lang.Object
org.apache.hadoop.hbase.codec.CodecPerformance
Do basic codec performance eval.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.slf4j.Logger
Deprecated.LOG variable would be made private. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(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
(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)
-
Field Details
-
LOG
Deprecated.LOG variable would be made private. since 1.2, remove in 3.0
-
-
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.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
- Throws:
IOException
-