Package org.apache.hadoop.hbase.io.hfile
Class TestRowIndexV1RoundTrip
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestRowIndexV1RoundTrip
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.conf.Configurationprivate static final org.apache.hadoop.hbase.io.encoding.DataBlockEncodingprivate static final intprivate org.apache.hadoop.fs.FileSystemprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]intToBytes(int i) private voidreadDataFromHFile(org.apache.hadoop.fs.Path hfilePath, int entryCount, boolean onHeap) voidsetUp()voidvoidprivate 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
-
DATA_BLOCK_ENCODING
-
ENTRY_COUNT
- See Also:
-
conf
-
fs
-
-
Constructor Details
-
TestRowIndexV1RoundTrip
public TestRowIndexV1RoundTrip()
-
-
Method Details
-
setUp
- Throws:
IOException
-
testReadMyWritesOnHeap
- Throws:
IOException
-
testReadMyWritesOnDirectMem
- 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
-
readDataFromHFile
private void readDataFromHFile(org.apache.hadoop.fs.Path hfilePath, int entryCount, boolean onHeap) throws IOException - Throws:
IOException
-
intToBytes
-