Class TestGetClosestAtOrBefore
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestGetClosestAtOrBefore
TestGet is a medley of tests of get all done up as a single test. It was originally written to
test a method since removed, getClosestAtOrBefore but the test is retained because it runs some
interesting exercises.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.conf.Configuration
private static final org.slf4j.Logger
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
org.junit.rules.TestName
private static HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
extractRowFromMetaRow
(byte[] b) private byte[]
findRow
(org.apache.hadoop.hbase.regionserver.Region mr, char table, int rowToFind, int answer) void
For HBASE-694void
Test file of multiple deletes and with deletes as final key.void
-
Field Details
-
CLASS_RULE
-
testName
-
LOG
-
T00
-
T10
-
T11
-
T12
-
T20
-
T30
-
T31
-
T35
-
T40
-
UTIL
-
conf
-
-
Constructor Details
-
TestGetClosestAtOrBefore
public TestGetClosestAtOrBefore()
-
-
Method Details
-
testUsingMetaAndBinary
- Throws:
IOException
-
findRow
private byte[] findRow(org.apache.hadoop.hbase.regionserver.Region mr, char table, int rowToFind, int answer) throws IOException - Parameters:
answer
- Pass -1 if we're not to find anything.- Returns:
- Row found.
- Throws:
IOException
-
extractRowFromMetaRow
-
testGetClosestRowBefore3
Test file of multiple deletes and with deletes as final key.- Throws:
IOException
- See Also:
-
testGetClosestRowBefore2
For HBASE-694- Throws:
IOException
-