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
IOException
public void testReadFully() throws IOException
IOException
public void testPreadWithReadFullBytes() throws IOException
IOException
public void testPreadWithoutReadFullBytes() throws IOException
IOException
private void testPreadReadFullBytesInternal(boolean readAllBytes, long randomSeed) throws IOException
IOException
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) throws IOException
IOException
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) throws IOException
IOException
private void deleteFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) throws IOException
IOException
public void testReadWithExtra() throws IOException
IOException
public void testPositionalReadNoExtra() throws IOException
IOException
public void testPositionalReadShortReadOfNecessaryBytes() throws IOException
IOException
public void testPositionalReadExtraSucceeded() throws IOException
IOException
public void testPositionalReadExtraFailed() throws IOException
IOException
public void testPositionalReadShortReadCompletesNecessaryAndExtraBytes() throws IOException
IOException
public void testPositionalReadPrematureEOF() throws IOException
IOException
private boolean isByteBufferPositionedReadable()
public void testByteBufferPositionedReadable() throws IOException
IOException
public void testByteBufferPositionedReadableEOF() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.