public class TestHFileBlock extends Object
Constructor and Description |
---|
TestHFileBlock(boolean includesMemstoreTS,
boolean includesTag) |
Modifier and Type | Method and Description |
---|---|
String |
createTestBlockStr(Compression.Algorithm algo,
int correctLength,
boolean useTag) |
byte[] |
createTestV1Block(Compression.Algorithm algo) |
static Collection<Object[]> |
parameters() |
void |
setUp() |
void |
testBlockHeapSize() |
protected void |
testBlockHeapSizeInternals() |
void |
testConcurrentReading() |
protected void |
testConcurrentReadingInternals() |
void |
testDataBlockEncoding()
Test encoding/decoding data blocks.
|
void |
testGzipCompression() |
void |
testNoCompression() |
void |
testPreviousOffset() |
protected void |
testPreviousOffsetInternals() |
void |
testReaderV2() |
protected void |
testReaderV2Internals() |
public TestHFileBlock(boolean includesMemstoreTS, boolean includesTag)
public static Collection<Object[]> parameters()
public void setUp() throws IOException
IOException
public byte[] createTestV1Block(Compression.Algorithm algo) throws IOException
IOException
public String createTestBlockStr(Compression.Algorithm algo, int correctLength, boolean useTag) throws IOException
IOException
public void testNoCompression() throws IOException
IOException
public void testGzipCompression() throws IOException
IOException
public void testReaderV2() throws IOException
IOException
protected void testReaderV2Internals() throws IOException
IOException
public void testDataBlockEncoding() throws IOException
IOException
- a bug or a problem with temporary files.public void testPreviousOffset() throws IOException
IOException
protected void testPreviousOffsetInternals() throws IOException
IOException
protected void testConcurrentReadingInternals() throws IOException, InterruptedException, ExecutionException
public void testBlockHeapSize()
protected void testBlockHeapSizeInternals()