public class TestHFileBlock extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
| Constructor and Description |
|---|
TestHFileBlock(boolean includesMemstoreTS,
boolean includesTag) |
| Modifier and Type | Method and Description |
|---|---|
String |
createTestBlockStr(org.apache.hadoop.hbase.io.compress.Compression.Algorithm algo,
int correctLength,
boolean useTag) |
byte[] |
createTestV1Block(org.apache.hadoop.hbase.io.compress.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() |
void |
testSerializeWithoutNextBlockMetadata() |
public static final HBaseClassTestRule CLASS_RULE
public TestHFileBlock(boolean includesMemstoreTS, boolean includesTag)
public static Collection<Object[]> parameters()
public void setUp() throws IOException
IOExceptionpublic byte[] createTestV1Block(org.apache.hadoop.hbase.io.compress.Compression.Algorithm algo) throws IOException
IOExceptionpublic String createTestBlockStr(org.apache.hadoop.hbase.io.compress.Compression.Algorithm algo, int correctLength, boolean useTag) throws IOException
IOExceptionpublic void testNoCompression() throws IOException
IOExceptionpublic void testGzipCompression() throws IOException
IOExceptionpublic void testReaderV2() throws IOException
IOExceptionprotected void testReaderV2Internals() throws IOException
IOExceptionpublic void testDataBlockEncoding() throws IOException
IOException - a bug or a problem with temporary files.public void testPreviousOffset() throws IOException
IOExceptionprotected void testPreviousOffsetInternals() throws IOException
IOExceptionpublic void testConcurrentReading() throws Exception
Exceptionprotected void testConcurrentReadingInternals() throws IOException, InterruptedException, ExecutionException
public void testBlockHeapSize()
protected void testBlockHeapSizeInternals()
public void testSerializeWithoutNextBlockMetadata()
Copyright © 2007–2019 Cloudera. All rights reserved.