public class TestCompactionPolicy extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
private static String |
DIR |
private org.apache.hadoop.hbase.regionserver.wal.FSHLog |
hlog |
private static org.slf4j.Logger |
LOG |
protected static int |
maxFiles |
protected static long |
maxSize |
protected static int |
minFiles |
protected static long |
minSize |
private org.apache.hadoop.hbase.regionserver.HRegion |
region |
protected org.apache.hadoop.hbase.regionserver.HStore |
store |
protected static org.apache.hadoop.fs.Path |
TEST_FILE |
protected static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestCompactionPolicy() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
compactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates,
boolean forcemajor,
boolean isOffPeak,
long... expected) |
(package private) void |
compactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates,
boolean forcemajor,
long... expected) |
(package private) void |
compactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates,
long... expected) |
protected void |
config()
setup config values necessary for store
|
(package private) long[] |
getSizes(List<org.apache.hadoop.hbase.regionserver.HStoreFile> sfList) |
protected void |
initialize()
Setting up a Store
|
void |
setUp() |
(package private) List<org.apache.hadoop.hbase.regionserver.HStoreFile> |
sfCreate(ArrayList<Long> sizes,
ArrayList<Long> ageInDisk) |
(package private) List<org.apache.hadoop.hbase.regionserver.HStoreFile> |
sfCreate(boolean isReference,
ArrayList<Long> sizes,
ArrayList<Long> ageInDisk) |
(package private) List<org.apache.hadoop.hbase.regionserver.HStoreFile> |
sfCreate(boolean isReference,
long... sizes) |
(package private) List<org.apache.hadoop.hbase.regionserver.HStoreFile> |
sfCreate(long... sizes) |
void |
tearDown() |
(package private) ArrayList<Long> |
toArrayList(long... numbers) |
private static final org.slf4j.Logger LOG
protected static final HBaseTestingUtility TEST_UTIL
protected org.apache.hadoop.conf.Configuration conf
protected org.apache.hadoop.hbase.regionserver.HStore store
protected static org.apache.hadoop.fs.Path TEST_FILE
protected static final int minFiles
protected static final int maxFiles
protected static final long minSize
protected static final long maxSize
private org.apache.hadoop.hbase.regionserver.wal.FSHLog hlog
private org.apache.hadoop.hbase.regionserver.HRegion region
public TestCompactionPolicy()
protected void config()
protected void initialize() throws IOException
IOException
- with errorpublic void tearDown() throws IOException
IOException
ArrayList<Long> toArrayList(long... numbers)
List<org.apache.hadoop.hbase.regionserver.HStoreFile> sfCreate(long... sizes) throws IOException
IOException
List<org.apache.hadoop.hbase.regionserver.HStoreFile> sfCreate(ArrayList<Long> sizes, ArrayList<Long> ageInDisk) throws IOException
IOException
List<org.apache.hadoop.hbase.regionserver.HStoreFile> sfCreate(boolean isReference, long... sizes) throws IOException
IOException
List<org.apache.hadoop.hbase.regionserver.HStoreFile> sfCreate(boolean isReference, ArrayList<Long> sizes, ArrayList<Long> ageInDisk) throws IOException
IOException
void compactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates, long... expected) throws IOException
IOException
void compactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates, boolean forcemajor, long... expected) throws IOException
IOException
void compactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates, boolean forcemajor, boolean isOffPeak, long... expected) throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.