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 HBaseClassTestRule
private org.apache.hadoop.conf.Configuration
private static final org.apache.hadoop.hbase.io.encoding.DataBlockEncoding
private static final int
private org.apache.hadoop.fs.FileSystem
private static final HBaseTestingUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
intToBytes
(int i) private void
readDataFromHFile
(org.apache.hadoop.fs.Path hfilePath, int entryCount, boolean onHeap) void
setUp()
void
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
-
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
-