use of org.apache.hadoop.hbase.regionserver.compactions.StripeCompactionPolicy in project hbase by apache.
the class TestStripeStoreEngine method testCreateBasedOnConfig.
@Test
public void testCreateBasedOnConfig() throws Exception {
Configuration conf = HBaseConfiguration.create();
conf.set(StoreEngine.STORE_ENGINE_CLASS_KEY, TestStoreEngine.class.getName());
StripeStoreEngine se = createEngine(conf);
assertTrue(se.getCompactionPolicy() instanceof StripeCompactionPolicy);
}
use of org.apache.hadoop.hbase.regionserver.compactions.StripeCompactionPolicy in project hbase by apache.
the class StripeStoreEngine method createComponents.
@Override
protected void createComponents(Configuration conf, Store store, CellComparator comparator) throws IOException {
this.config = new StripeStoreConfig(conf, store);
this.compactionPolicy = new StripeCompactionPolicy(conf, store, config);
this.storeFileManager = new StripeStoreFileManager(comparator, conf, this.config);
this.storeFlusher = new StripeStoreFlusher(conf, store, this.compactionPolicy, this.storeFileManager);
this.compactor = new StripeCompactor(conf, store);
}
Aggregations