Class TestCompactionPolicy
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestCompactionPolicy
- Direct Known Subclasses:
AbstractTestDateTieredCompactionPolicy,TestDefaultCompactSelection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.hadoop.conf.Configurationprivate static final Stringprivate org.apache.hadoop.hbase.regionserver.wal.FSHLogprivate static final org.slf4j.Loggerprotected static final intprotected static final longprotected static final intprotected static final longprivate org.apache.hadoop.hbase.regionserver.HRegionprotected org.apache.hadoop.hbase.regionserver.HStoreprotected static org.apache.hadoop.fs.Pathprotected static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidcompactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates, boolean forcemajor, boolean isOffPeak, long... expected) (package private) voidcompactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates, boolean forcemajor, long... expected) (package private) voidcompactEquals(List<org.apache.hadoop.hbase.regionserver.HStoreFile> candidates, long... expected) protected voidconfig()setup config values necessary for store(package private) long[]protected voidSetting up a StorevoidsetUp()(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>voidtearDown()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
-