Package org.apache.hadoop.hbase.codec
Class CodecPerformance
java.lang.Object
org.apache.hadoop.hbase.codec.CodecPerformance
Do basic codec performance eval.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription(package private) static voiddoCodec(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 intgetRoughSize(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 voidverifyCells(org.apache.hadoop.hbase.Cell[] input, org.apache.hadoop.hbase.Cell[] output) 
- 
Field Details- 
LOG
 
- 
- 
Constructor Details- 
CodecPerformancepublic CodecPerformance()
 
- 
- 
Method Details- 
getCells
- 
getRoughSize
- 
runEncoderTeststatic 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
 
- 
runDecoderTeststatic org.apache.hadoop.hbase.ExtendedCell[] runDecoderTest(int index, int count, org.apache.hadoop.hbase.ExtendedCellScanner decoder) throws IOException - Throws:
- IOException
 
- 
verifyCellsstatic void verifyCells(org.apache.hadoop.hbase.Cell[] input, org.apache.hadoop.hbase.Cell[] output) 
- 
doCodecstatic 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
 
 
-