Package org.apache.hadoop.hbase.io.hfile
Class TestRowIndexV1DataEncoder
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestRowIndexV1DataEncoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.hbase.io.encoding.DataBlockEncodingprivate org.apache.hadoop.fs.FileSystemprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]intToBytes(int i) voidsetUp()voidprivate voidwriteDataToHFile(org.apache.hadoop.fs.Path hfilePath, int entryCount) private voidwriteKeyValues(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
-