Search in sources :

Example 1 with StripeCompactionPolicy

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);
}
Also used : Configuration(org.apache.hadoop.conf.Configuration) HBaseConfiguration(org.apache.hadoop.hbase.HBaseConfiguration) StripeCompactionPolicy(org.apache.hadoop.hbase.regionserver.compactions.StripeCompactionPolicy) Test(org.junit.Test)

Example 2 with 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);
}
Also used : StripeCompactionPolicy(org.apache.hadoop.hbase.regionserver.compactions.StripeCompactionPolicy) StripeCompactor(org.apache.hadoop.hbase.regionserver.compactions.StripeCompactor)

Aggregations

StripeCompactionPolicy (org.apache.hadoop.hbase.regionserver.compactions.StripeCompactionPolicy)2 Configuration (org.apache.hadoop.conf.Configuration)1 HBaseConfiguration (org.apache.hadoop.hbase.HBaseConfiguration)1 StripeCompactor (org.apache.hadoop.hbase.regionserver.compactions.StripeCompactor)1 Test (org.junit.Test)1