Package org.apache.hadoop.hbase.io.hfile
Class TestRowIndexV1DataEncoder
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestRowIndexV1DataEncoder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private org.apache.hadoop.hbase.io.encoding.DataBlockEncoding
private org.apache.hadoop.fs.FileSystem
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
intToBytes
(int i) void
setUp()
void
private void
writeDataToHFile
(org.apache.hadoop.fs.Path hfilePath, int entryCount) private void
writeKeyValues
(int entryCount, org.apache.hadoop.hbase.io.hfile.HFile.Writer writer, List<org.apache.hadoop.hbase.KeyValue> keyValues)
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
conf
-
fs
-
dataBlockEncoding
-
-
Constructor Details
-
TestRowIndexV1DataEncoder
public TestRowIndexV1DataEncoder()
-
-
Method Details
-
setUp
- Throws:
IOException
-
testBlockCountWritten
- Throws:
IOException
-
writeDataToHFile
private void writeDataToHFile(org.apache.hadoop.fs.Path hfilePath, int entryCount) throws IOException - Throws:
IOException
-
writeKeyValues
private void writeKeyValues(int entryCount, org.apache.hadoop.hbase.io.hfile.HFile.Writer writer, List<org.apache.hadoop.hbase.KeyValue> keyValues) throws IOException - Throws:
IOException
-
intToBytes
-