public class TestExpiredMobFileCleaner extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private static String |
family |
private static byte[] |
qf |
private static byte[] |
row1 |
private static byte[] |
row2 |
private static byte[] |
row3 |
private static org.apache.hadoop.hbase.client.BufferedMutator |
table |
private static org.apache.hadoop.hbase.TableName |
tableName |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestExpiredMobFileCleaner() |
Modifier and Type | Method and Description |
---|---|
private void |
init() |
private byte[] |
makeDummyData(int size) |
private void |
modifyColumnExpiryDays(int expireDays) |
private void |
putKVAndFlush(org.apache.hadoop.hbase.client.BufferedMutator table,
byte[] row,
byte[] value,
long ts) |
private int |
secondsOfDay() |
void |
setUp() |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testCleaner()
Creates a 3 day old hfile and an 1 day old hfile then sets expiry to 2 days.
|
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static final org.apache.hadoop.hbase.TableName tableName
private static final String family
private static final byte[] row1
private static final byte[] row2
private static final byte[] row3
private static final byte[] qf
private static org.apache.hadoop.hbase.client.BufferedMutator table
private static org.apache.hadoop.hbase.client.Admin admin
public TestExpiredMobFileCleaner()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
private void modifyColumnExpiryDays(int expireDays) throws Exception
Exception
private void putKVAndFlush(org.apache.hadoop.hbase.client.BufferedMutator table, byte[] row, byte[] value, long ts) throws Exception
Exception
public void testCleaner() throws Exception
Exception
private int secondsOfDay()
private byte[] makeDummyData(int size)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.