Package org.apache.hadoop.hbase.ipc
Class TestCellBlockBuilder
java.lang.Object
org.apache.hadoop.hbase.ipc.TestCellBlockBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
before()
(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
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/ passederrCode
-
Field Details
-
CLASS_RULE
-
LOG
-
builder
-
COUNT
- See Also:
-
SIZE
- See Also:
-
-
Constructor Details
-
TestCellBlockBuilder
public TestCellBlockBuilder()
-
-
Method Details
-
before
-
testBuildCellBlock
- 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
-
getCells
-
usage
Prints usage and then exits w/ passederrCode
- 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
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
-