Class TestCompactionPolicy
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestCompactionPolicy
- Direct Known Subclasses:
AbstractTestDateTieredCompactionPolicy
,TestDefaultCompactSelection
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.hadoop.conf.Configuration
private static final String
private org.apache.hadoop.hbase.regionserver.wal.FSHLog
private static final org.slf4j.Logger
protected static final int
protected static final long
protected static final int
protected static final long
private org.apache.hadoop.hbase.regionserver.HRegion
protected org.apache.hadoop.hbase.regionserver.HStore
protected static org.apache.hadoop.fs.Path
protected static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(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[]
protected void
Setting up a Storevoid
setUp()
(package private) List<org.apache.hadoop.hbase.regionserver.HStoreFile>
sfCreate
(boolean isReference, long... sizes) (package private) List<org.apache.hadoop.hbase.regionserver.HStoreFile>
(package private) List<org.apache.hadoop.hbase.regionserver.HStoreFile>
sfCreate
(long... sizes) (package private) List<org.apache.hadoop.hbase.regionserver.HStoreFile>
void
tearDown()
toArrayList
(long... numbers)
-
Field Details
-
LOG
-
TEST_UTIL
-
conf
-
store
-
DIR
-
TEST_FILE
-
minFiles
- See Also:
-
maxFiles
- See Also:
-
minSize
- See Also:
-
maxSize
- See Also:
-
hlog
-
region
-
-
Constructor Details
-
TestCompactionPolicy
public TestCompactionPolicy()
-
-
Method Details
-
setUp
- Throws:
Exception
-
config
setup config values necessary for store -
initialize
Setting up a Store- Throws:
IOException
- with error
-
tearDown
- Throws:
IOException
-
toArrayList
-
sfCreate
- Throws:
IOException
-
sfCreate
List<org.apache.hadoop.hbase.regionserver.HStoreFile> sfCreate(ArrayList<Long> sizes, ArrayList<Long> ageInDisk) throws IOException - Throws:
IOException
-
sfCreate
List<org.apache.hadoop.hbase.regionserver.HStoreFile> sfCreate(boolean isReference, long... sizes) throws IOException - Throws:
IOException
-
sfCreate
List<org.apache.hadoop.hbase.regionserver.HStoreFile> sfCreate(boolean isReference, ArrayList<Long> sizes, ArrayList<Long> ageInDisk) throws IOException - Throws:
IOException
-
getSizes
-
compactEquals
void compactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates, long... expected) throws IOException - Throws:
IOException
-
compactEquals
void compactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates, boolean forcemajor, long... expected) throws IOException - Throws:
IOException
-
compactEquals
void compactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates, boolean forcemajor, boolean isOffPeak, long... expected) throws IOException - Throws:
IOException
-