public class TestReversibleScanners extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILYNAME |
private static org.slf4j.Logger |
LOG |
private static int |
MAXMVCC |
org.junit.rules.TestName |
name |
private static byte[] |
QUAL |
private static byte[][] |
QUALS |
private static int |
QUALSIZE |
private static byte[] |
ROW |
private static byte[][] |
ROWS |
private static int |
ROWSIZE |
(package private) HBaseTestingUtility |
TEST_UTIL |
private static long |
TS |
private static byte[] |
VALUE |
private static byte[][] |
VALUES |
private static int |
VALUESIZE |
Constructor and Description |
---|
TestReversibleScanners() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.KeyValue |
getNextReadableKeyValueWithBackwardScan(int startRowNum,
int startQualNum,
int readPoint) |
private org.apache.hadoop.hbase.util.Pair<Integer,Integer> |
getNextReadableNumWithBackwardScan(int startRowNum,
int startQualNum,
int readPoint) |
private org.apache.hadoop.hbase.regionserver.ReversedKeyValueHeap |
getReversibleKeyValueHeap(org.apache.hadoop.hbase.regionserver.MemStore memstore,
org.apache.hadoop.hbase.regionserver.HStoreFile sf1,
org.apache.hadoop.hbase.regionserver.HStoreFile sf2,
byte[] startRow,
int readPoint) |
private org.apache.hadoop.hbase.regionserver.StoreScanner |
getReversibleStoreScanner(org.apache.hadoop.hbase.regionserver.MemStore memstore,
org.apache.hadoop.hbase.regionserver.HStoreFile sf1,
org.apache.hadoop.hbase.regionserver.HStoreFile sf2,
org.apache.hadoop.hbase.client.Scan scan,
org.apache.hadoop.hbase.regionserver.ScanInfo scanInfo,
int readPoint) |
private List<org.apache.hadoop.hbase.regionserver.KeyValueScanner> |
getScanners(org.apache.hadoop.hbase.regionserver.MemStore memstore,
org.apache.hadoop.hbase.regionserver.HStoreFile sf1,
org.apache.hadoop.hbase.regionserver.HStoreFile sf2,
byte[] startRow,
boolean doSeek,
int readPoint) |
private void |
internalTestSeekAndNextForReversibleKeyValueHeap(org.apache.hadoop.hbase.regionserver.ReversedKeyValueHeap kvHeap,
int startRowNum) |
private static void |
loadDataToRegion(org.apache.hadoop.hbase.regionserver.HRegion region,
byte[] additionalFamily) |
private static org.apache.hadoop.hbase.KeyValue |
makeKV(int rowNum,
int cqNum) |
private static org.apache.hadoop.hbase.KeyValue |
makeKV(int rowNum,
int cqNum,
byte[] familyName) |
private static long |
makeMVCC(int rowNum,
int cqNum) |
private static byte[][] |
makeN(byte[] base,
int n) |
private void |
seekTestOfReversibleKeyValueScanner(org.apache.hadoop.hbase.regionserver.KeyValueScanner scanner) |
private void |
seekTestOfReversibleKeyValueScannerWithMVCC(List<? extends org.apache.hadoop.hbase.regionserver.KeyValueScanner> scanners,
int readPoint) |
static void |
setUp() |
void |
testReversibleKeyValueHeap() |
void |
testReversibleMemstoreScanner() |
void |
testReversibleRegionScanner() |
void |
testReversibleStoreFileScanner() |
void |
testReversibleStoreScanner() |
private void |
verifyCountAndOrder(org.apache.hadoop.hbase.regionserver.InternalScanner scanner,
int expectedKVCount,
int expectedRowCount,
boolean forward) |
private static void |
writeMemstore(org.apache.hadoop.hbase.regionserver.MemStore memstore) |
private static void |
writeMemstoreAndStoreFiles(org.apache.hadoop.hbase.regionserver.MemStore memstore,
org.apache.hadoop.hbase.regionserver.StoreFileWriter[] writers) |
private static void |
writeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
HBaseTestingUtility TEST_UTIL
private static byte[] FAMILYNAME
private static long TS
private static int MAXMVCC
private static byte[] ROW
private static final int ROWSIZE
private static byte[][] ROWS
private static byte[] QUAL
private static final int QUALSIZE
private static byte[][] QUALS
private static byte[] VALUE
private static final int VALUESIZE
private static byte[][] VALUES
public org.junit.rules.TestName name
public TestReversibleScanners()
public static void setUp()
public void testReversibleStoreFileScanner() throws IOException
IOException
public void testReversibleMemstoreScanner() throws IOException
IOException
public void testReversibleKeyValueHeap() throws IOException
IOException
public void testReversibleStoreScanner() throws IOException
IOException
public void testReversibleRegionScanner() throws IOException
IOException
private org.apache.hadoop.hbase.regionserver.StoreScanner getReversibleStoreScanner(org.apache.hadoop.hbase.regionserver.MemStore memstore, org.apache.hadoop.hbase.regionserver.HStoreFile sf1, org.apache.hadoop.hbase.regionserver.HStoreFile sf2, org.apache.hadoop.hbase.client.Scan scan, org.apache.hadoop.hbase.regionserver.ScanInfo scanInfo, int readPoint) throws IOException
IOException
private void verifyCountAndOrder(org.apache.hadoop.hbase.regionserver.InternalScanner scanner, int expectedKVCount, int expectedRowCount, boolean forward) throws IOException
IOException
private void internalTestSeekAndNextForReversibleKeyValueHeap(org.apache.hadoop.hbase.regionserver.ReversedKeyValueHeap kvHeap, int startRowNum) throws IOException
IOException
private org.apache.hadoop.hbase.regionserver.ReversedKeyValueHeap getReversibleKeyValueHeap(org.apache.hadoop.hbase.regionserver.MemStore memstore, org.apache.hadoop.hbase.regionserver.HStoreFile sf1, org.apache.hadoop.hbase.regionserver.HStoreFile sf2, byte[] startRow, int readPoint) throws IOException
IOException
private List<org.apache.hadoop.hbase.regionserver.KeyValueScanner> getScanners(org.apache.hadoop.hbase.regionserver.MemStore memstore, org.apache.hadoop.hbase.regionserver.HStoreFile sf1, org.apache.hadoop.hbase.regionserver.HStoreFile sf2, byte[] startRow, boolean doSeek, int readPoint) throws IOException
IOException
private void seekTestOfReversibleKeyValueScanner(org.apache.hadoop.hbase.regionserver.KeyValueScanner scanner) throws IOException
IOException
private void seekTestOfReversibleKeyValueScannerWithMVCC(List<? extends org.apache.hadoop.hbase.regionserver.KeyValueScanner> scanners, int readPoint) throws IOException
IOException
private org.apache.hadoop.hbase.KeyValue getNextReadableKeyValueWithBackwardScan(int startRowNum, int startQualNum, int readPoint)
private org.apache.hadoop.hbase.util.Pair<Integer,Integer> getNextReadableNumWithBackwardScan(int startRowNum, int startQualNum, int readPoint)
private static void loadDataToRegion(org.apache.hadoop.hbase.regionserver.HRegion region, byte[] additionalFamily) throws IOException
IOException
private static void writeMemstoreAndStoreFiles(org.apache.hadoop.hbase.regionserver.MemStore memstore, org.apache.hadoop.hbase.regionserver.StoreFileWriter[] writers) throws IOException
IOException
private static void writeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer) throws IOException
IOException
private static void writeMemstore(org.apache.hadoop.hbase.regionserver.MemStore memstore) throws IOException
IOException
private static org.apache.hadoop.hbase.KeyValue makeKV(int rowNum, int cqNum)
private static org.apache.hadoop.hbase.KeyValue makeKV(int rowNum, int cqNum, byte[] familyName)
private static long makeMVCC(int rowNum, int cqNum)
private static byte[][] makeN(byte[] base, int n)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.