Package org.apache.hadoop.hbase.io.hfile
Class TestHFileEncryption
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestHFileEncryption
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.hbase.io.crypto.Encryption.Context
private static org.apache.hadoop.fs.FileSystem
private static final org.slf4j.Logger
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate long
readAndVerifyBlock
(long pos, org.apache.hadoop.hbase.io.hfile.HFileContext ctx, org.apache.hadoop.hbase.io.hfile.HFileBlock.FSReaderImpl hbr, int size) static void
setUp()
void
void
void
private int
writeBlock
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FSDataOutputStream os, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, int size)
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
fs
-
cryptoContext
-
-
Constructor Details
-
TestHFileEncryption
public TestHFileEncryption()
-
-
Method Details
-
setUp
- Throws:
Exception
-
writeBlock
private int writeBlock(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FSDataOutputStream os, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, int size) throws IOException - Throws:
IOException
-
readAndVerifyBlock
private long readAndVerifyBlock(long pos, org.apache.hadoop.hbase.io.hfile.HFileContext ctx, org.apache.hadoop.hbase.io.hfile.HFileBlock.FSReaderImpl hbr, int size) throws IOException - Throws:
IOException
-
testDataBlockEncryption
- Throws:
IOException
-
testHFileEncryptionMetadata
- Throws:
Exception
-
testHFileEncryption
- Throws:
Exception
-