Package org.apache.hadoop.hbase.io.hfile
Class TestBlockIOUtils
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestBlockIOUtils
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.apache.hadoop.hbase.io.compress.Compression.Algorithm
org.junit.rules.ExpectedException
private static final int
io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule
private static final HBaseTestingUtil
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
deleteFile
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) private boolean
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
void
void
void
void
void
void
void
void
private void
testPreadReadFullBytesInternal
(boolean readAllBytes, long randomSeed) void
void
void
void
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)
-
Field Details
-
CLASS_RULE
-
testName
-
exception
-
otelRule
-
TEST_UTIL
-
NUM_TEST_BLOCKS
- See Also:
-
COMPRESSION_ALGO
-
-
Constructor Details
-
TestBlockIOUtils
public TestBlockIOUtils()
-
-
Method Details
-
testIsByteBufferReadable
- Throws:
IOException
-
testReadFully
- Throws:
IOException
-
testPreadWithReadFullBytes
- Throws:
IOException
-
testPreadWithoutReadFullBytes
- Throws:
IOException
-
testPreadReadFullBytesInternal
private void testPreadReadFullBytesInternal(boolean readAllBytes, long randomSeed) throws IOException - Throws:
IOException
-
writeBlocks
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 - Throws:
IOException
-
readDataBlocksAndVerify
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 - Throws:
IOException
-
deleteFile
private void deleteFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) throws IOException - Throws:
IOException
-
testReadWithExtra
- Throws:
IOException
-
testPositionalReadNoExtra
- Throws:
IOException
-
testPositionalReadShortReadOfNecessaryBytes
- Throws:
IOException
-
testPositionalReadExtraSucceeded
- Throws:
IOException
-
testPositionalReadExtraFailed
- Throws:
IOException
-
testPositionalReadShortReadCompletesNecessaryAndExtraBytes
- Throws:
IOException
-
testPositionalReadPrematureEOF
- Throws:
IOException
-
isByteBufferPositionedReadable
Determine if ByteBufferPositionedReadable API is available .- Returns:
- true if FSDataInputStream implements ByteBufferPositionedReadable API.
-
testByteBufferPositionedReadable
- Throws:
IOException
-
testByteBufferPositionedReadableEOF
- Throws:
IOException
-