Package org.apache.hadoop.hbase.io.hfile
Class TestBlockIOUtils
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestBlockIOUtils
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.apache.hadoop.hbase.io.compress.Compression.Algorithmorg.junit.rules.ExpectedExceptionprivate static final intio.opentelemetry.sdk.testing.junit4.OpenTelemetryRuleprivate static final HBaseTestingUtilityorg.junit.rules.TestName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddeleteFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path) private booleanDetermine if ByteBufferPositionedReadable API is available .private voidreadDataBlocksAndVerify(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.hbase.io.compress.Compression.Algorithm compressAlgo, long totalDataBlockBytes) voidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidtestPreadReadFullBytesInternal(boolean readAllBytes, long randomSeed) voidvoidvoidvoidprivate longwriteBlocks(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
-