public class TestSeekOptimizations extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.regionserver.BloomType |
bloomType |
static HBaseClassTestRule |
CLASS_RULE |
private static int[][] |
COLUMN_SETS |
private org.apache.hadoop.hbase.io.compress.Compression.Algorithm |
comprAlgo |
private org.apache.hadoop.hbase.client.Delete |
del |
private static int |
DELETES_PER_ROW_COL |
private Set<Long> |
delTimestamps |
private List<org.apache.hadoop.hbase.Cell> |
expectedKVs |
private static String |
FAMILY |
private static byte[] |
FAMILY_BYTES |
private static org.slf4j.Logger |
LOG |
private static int[] |
MAX_VERSIONS_VALUES |
private static int |
NUM_COLS |
private static int |
NUM_ROWS |
private org.apache.hadoop.hbase.client.Put |
put |
private static int |
PUTS_PER_ROW_COL |
private Set<Long> |
putTimestamps |
private org.apache.hadoop.hbase.regionserver.HRegion |
region |
private static Random |
RNG |
private static int[][] |
ROW_RANGES |
private static HBaseTestingUtility |
TEST_UTIL |
private long |
totalSeekDiligent |
private long |
totalSeekLazy |
private static boolean |
USE_MANY_STORE_FILES
Disable this when this test fails hopelessly and you need to debug a simpler case.
|
private static boolean |
VERBOSE |
Constructor and Description |
---|
TestSeekOptimizations(org.apache.hadoop.hbase.io.compress.Compression.Algorithm comprAlgo,
org.apache.hadoop.hbase.regionserver.BloomType bloomType) |
Modifier and Type | Method and Description |
---|---|
void |
assertKVListsEqual(String additionalMsg,
List<? extends org.apache.hadoop.hbase.Cell> expected,
List<? extends org.apache.hadoop.hbase.Cell> actual) |
void |
createTimestampRange(long minTS,
long maxTS,
long deleteUpToTS) |
private byte[] |
createValue(long ts) |
void |
delAtTimestamp(String qual,
long ts) |
private void |
delUpToTimestamp(String qual,
long upToTS) |
private List<org.apache.hadoop.hbase.Cell> |
filterExpectedResults(Set<String> qualSet,
byte[] startRow,
byte[] endRow,
int maxVersions) |
private String |
getQualStr(int i) |
private void |
logDelete(String qual,
long ts,
String delType) |
static Collection<Object[]> |
parameters() |
private void |
prepareExpectedKVs(long latestDelTS) |
void |
put(String qual,
long ts) |
private long |
randBetween(long a,
long b) |
private long |
randLong(long n) |
private byte[] |
rowBytes(int i) |
private String |
rowStr(int i) |
void |
setUp() |
void |
tearDown() |
void |
testMultipleTimestampRanges() |
private void |
testScan(int[] columnArr,
boolean lazySeekEnabled,
int startRow,
int endRow,
int maxVersions) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final String FAMILY
private static final byte[] FAMILY_BYTES
private static final int PUTS_PER_ROW_COL
private static final int DELETES_PER_ROW_COL
private static final int NUM_ROWS
private static final int NUM_COLS
private static final boolean VERBOSE
private static final boolean USE_MANY_STORE_FILES
private static final int[][] COLUMN_SETS
private static final int[][] ROW_RANGES
private static final int[] MAX_VERSIONS_VALUES
private org.apache.hadoop.hbase.regionserver.HRegion region
private org.apache.hadoop.hbase.client.Put put
private org.apache.hadoop.hbase.client.Delete del
private Set<Long> putTimestamps
private Set<Long> delTimestamps
private List<org.apache.hadoop.hbase.Cell> expectedKVs
private org.apache.hadoop.hbase.io.compress.Compression.Algorithm comprAlgo
private org.apache.hadoop.hbase.regionserver.BloomType bloomType
private long totalSeekDiligent
private long totalSeekLazy
private static final HBaseTestingUtility TEST_UTIL
public TestSeekOptimizations(org.apache.hadoop.hbase.io.compress.Compression.Algorithm comprAlgo, org.apache.hadoop.hbase.regionserver.BloomType bloomType)
public static final Collection<Object[]> parameters()
public void setUp()
public void testMultipleTimestampRanges() throws IOException
IOException
private void testScan(int[] columnArr, boolean lazySeekEnabled, int startRow, int endRow, int maxVersions) throws IOException
IOException
private List<org.apache.hadoop.hbase.Cell> filterExpectedResults(Set<String> qualSet, byte[] startRow, byte[] endRow, int maxVersions)
private void prepareExpectedKVs(long latestDelTS)
private byte[] createValue(long ts)
public void delAtTimestamp(String qual, long ts)
private void delUpToTimestamp(String qual, long upToTS)
private long randLong(long n)
private long randBetween(long a, long b)
private final byte[] rowBytes(int i)
private final String getQualStr(int i)
public void createTimestampRange(long minTS, long maxTS, long deleteUpToTS) throws IOException
IOException
public void tearDown() throws IOException
IOException
public void assertKVListsEqual(String additionalMsg, List<? extends org.apache.hadoop.hbase.Cell> expected, List<? extends org.apache.hadoop.hbase.Cell> actual)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.