@InterfaceAudience.Private public abstract class CompactionPolicy extends Object
Modifier and Type | Field and Description |
---|---|
protected CompactionConfiguration |
comConf |
protected StoreConfigInformation |
storeConfigInfo |
Constructor and Description |
---|
CompactionPolicy(org.apache.hadoop.conf.Configuration conf,
StoreConfigInformation storeConfigInfo) |
Modifier and Type | Method and Description |
---|---|
CompactionConfiguration |
getConf()
Returns The current compaction configuration settings.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
Inform the policy that some configuration has been change, so cached value should be updated it
any.
|
abstract boolean |
shouldPerformMajorCompaction(Collection<HStoreFile> filesToCompact) |
abstract boolean |
throttleCompaction(long compactionSize) |
protected CompactionConfiguration comConf
protected StoreConfigInformation storeConfigInfo
public CompactionPolicy(org.apache.hadoop.conf.Configuration conf, StoreConfigInformation storeConfigInfo)
public abstract boolean shouldPerformMajorCompaction(Collection<HStoreFile> filesToCompact) throws IOException
filesToCompact
- Files to compact. Can be null.IOException
public abstract boolean throttleCompaction(long compactionSize)
compactionSize
- Total size of some compactionpublic void setConf(org.apache.hadoop.conf.Configuration conf)
public CompactionConfiguration getConf()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.