public class TestCellBlockBuilder extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.ipc.CellBlockBuilder |
builder |
static HBaseClassTestRule |
CLASS_RULE |
private static String |
COUNT |
private static org.slf4j.Logger |
LOG |
private static String |
SIZE |
Constructor and Description |
---|
TestCellBlockBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
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.Cell[] |
getCells(int howMany) |
(package private) static org.apache.hadoop.hbase.Cell[] |
getCells(int howMany,
int valueSize) |
(package private) static org.apache.hadoop.hbase.CellScanner |
getSizedCellScanner(org.apache.hadoop.hbase.Cell[] cells) |
static void |
main(String[] args)
For running a few tests of methods herein.
|
void |
testBuildCellBlock() |
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 |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private org.apache.hadoop.hbase.ipc.CellBlockBuilder builder
private static final String COUNT
private static final String SIZE
public TestCellBlockBuilder()
public void before()
public void testBuildCellBlock() throws IOException
IOException
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
IOException
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
IOException
static org.apache.hadoop.hbase.CellScanner getSizedCellScanner(org.apache.hadoop.hbase.Cell[] cells)
static org.apache.hadoop.hbase.Cell[] getCells(int howMany)
static org.apache.hadoop.hbase.Cell[] getCells(int howMany, int valueSize)
private static void usage(int errorCode)
errCode
errorCode
- the error code to use to exit the applicationprivate 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
IOException
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
IOException
public static void main(String[] args) throws IOException
args
- the arguments to use for the timer testIOException
- if creating the build failsCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.