@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() |
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<StoreFile> 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<StoreFile> 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–2019 The Apache Software Foundation. All rights reserved.