public class TestBlockIOUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestBlockIOUtils.MyFSDataInputStream |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.io.compress.Compression.Algorithm |
COMPRESSION_ALGO |
org.junit.rules.ExpectedException |
exception |
private static int |
NUM_TEST_BLOCKS |
io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule |
otelRule |
private static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
testName |
| Constructor and Description |
|---|
TestBlockIOUtils() |
| Modifier and Type | Method and Description |
|---|---|
private void |
deleteFile(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path) |
private boolean |
isByteBufferPositionedReadable()
Determine if ByteBufferPositionedReadable API is available .
|
private void |
readDataBlocksAndVerify(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.hbase.io.compress.Compression.Algorithm compressAlgo,
long totalDataBlockBytes) |
void |
testByteBufferPositionedReadable() |
void |
testByteBufferPositionedReadableEOF() |
void |
testIsByteBufferReadable() |
void |
testPositionalReadExtraFailed() |
void |
testPositionalReadExtraSucceeded() |
void |
testPositionalReadNoExtra() |
void |
testPositionalReadPrematureEOF() |
void |
testPositionalReadShortReadCompletesNecessaryAndExtraBytes() |
void |
testPositionalReadShortReadOfNecessaryBytes() |
private void |
testPreadReadFullBytesInternal(boolean readAllBytes,
long randomSeed) |
void |
testPreadWithoutReadFullBytes() |
void |
testPreadWithReadFullBytes() |
void |
testReadFully() |
void |
testReadWithExtra() |
private long |
writeBlocks(org.apache.hadoop.conf.Configuration conf,
Random rand,
org.apache.hadoop.hbase.io.compress.Compression.Algorithm compressAlgo,
org.apache.hadoop.fs.Path path) |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName testName
public org.junit.rules.ExpectedException exception
public io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule otelRule
private static final HBaseTestingUtility TEST_UTIL
private static final int NUM_TEST_BLOCKS
private static final org.apache.hadoop.hbase.io.compress.Compression.Algorithm COMPRESSION_ALGO
public TestBlockIOUtils()
public void testIsByteBufferReadable() throws IOException
IOExceptionpublic void testReadFully() throws IOException
IOExceptionpublic void testPreadWithReadFullBytes() throws IOException
IOExceptionpublic void testPreadWithoutReadFullBytes() throws IOException
IOExceptionprivate void testPreadReadFullBytesInternal(boolean readAllBytes, long randomSeed) throws IOException
IOExceptionprivate long writeBlocks(org.apache.hadoop.conf.Configuration conf, Random rand, org.apache.hadoop.hbase.io.compress.Compression.Algorithm compressAlgo, org.apache.hadoop.fs.Path path) throws IOException
IOExceptionprivate void readDataBlocksAndVerify(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.io.compress.Compression.Algorithm compressAlgo, long totalDataBlockBytes) throws IOException
IOExceptionprivate void deleteFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) throws IOException
IOExceptionpublic void testReadWithExtra() throws IOException
IOExceptionpublic void testPositionalReadNoExtra() throws IOException
IOExceptionpublic void testPositionalReadShortReadOfNecessaryBytes() throws IOException
IOExceptionpublic void testPositionalReadExtraSucceeded() throws IOException
IOExceptionpublic void testPositionalReadExtraFailed() throws IOException
IOExceptionpublic void testPositionalReadShortReadCompletesNecessaryAndExtraBytes() throws IOException
IOExceptionpublic void testPositionalReadPrematureEOF() throws IOException
IOExceptionprivate boolean isByteBufferPositionedReadable()
public void testByteBufferPositionedReadable() throws IOException
IOExceptionpublic void testByteBufferPositionedReadableEOF() throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.