@InterfaceAudience.LimitedPrivate(value="Configuration") public class StripeStoreEngine extends StoreEngine<StripeStoreFlusher,StripeCompactionPolicy,StripeCompactor,StripeStoreFileManager>
Modifier and Type | Class and Description |
---|---|
private class |
StripeStoreEngine.StripeCompaction
Represents one instance of stripe compaction, with the necessary context and flow.
|
Modifier and Type | Field and Description |
---|---|
private StripeStoreConfig |
config |
private static org.apache.commons.logging.Log |
LOG |
compactionPolicy, compactor, STORE_ENGINE_CLASS_KEY, storeFileManager, storeFlusher
Constructor and Description |
---|
StripeStoreEngine() |
Modifier and Type | Method and Description |
---|---|
CompactionContext |
createCompaction()
Creates an instance of a compaction context specific to this engine.
|
protected void |
createComponents(org.apache.hadoop.conf.Configuration conf,
Store store,
KeyValue.KVComparator comparator)
Create the StoreEngine's components.
|
boolean |
needsCompaction(List<StoreFile> filesCompacting) |
create, getCompactionPolicy, getCompactor, getStoreFileManager, getStoreFlusher
private static final org.apache.commons.logging.Log LOG
private StripeStoreConfig config
public boolean needsCompaction(List<StoreFile> filesCompacting)
needsCompaction
in class StoreEngine<StripeStoreFlusher,StripeCompactionPolicy,StripeCompactor,StripeStoreFileManager>
filesCompacting
- Files currently compactingpublic CompactionContext createCompaction()
StoreEngine
createCompaction
in class StoreEngine<StripeStoreFlusher,StripeCompactionPolicy,StripeCompactor,StripeStoreFileManager>
protected void createComponents(org.apache.hadoop.conf.Configuration conf, Store store, KeyValue.KVComparator comparator) throws IOException
StoreEngine
createComponents
in class StoreEngine<StripeStoreFlusher,StripeCompactionPolicy,StripeCompactor,StripeStoreFileManager>
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.