public class SizeTieredCompactionStrategy extends AbstractCompactionStrategy
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
BUCKET_HIGH_KEY |
protected static java.lang.String |
BUCKET_LOW_KEY |
protected double |
bucketHigh |
protected double |
bucketLow |
protected static double |
DEFAULT_BUCKET_HIGH |
protected static double |
DEFAULT_BUCKET_LOW |
protected static long |
DEFAULT_MIN_SSTABLE_SIZE |
protected int |
estimatedRemainingTasks |
protected static java.lang.String |
MIN_SSTABLE_SIZE_KEY |
protected long |
minSSTableSize |
cfs, DEFAULT_TOMBSTONE_COMPACTION_INTERVAL, DEFAULT_TOMBSTONE_THRESHOLD, options, TOMBSTONE_COMPACTION_INTERVAL_OPTION, TOMBSTONE_THRESHOLD_OPTION, tombstoneCompactionInterval, tombstoneThreshold| Constructor and Description |
|---|
SizeTieredCompactionStrategy(ColumnFamilyStore cfs,
java.util.Map<java.lang.String,java.lang.String> options) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEstimatedRemainingTasks() |
AbstractCompactionTask |
getMaximalTask(int gcBefore) |
long |
getMaxSSTableSize() |
AbstractCompactionTask |
getNextBackgroundTask(int gcBefore) |
AbstractCompactionTask |
getUserDefinedTask(java.util.Collection<SSTableReader> sstables,
int gcBefore) |
java.lang.String |
toString() |
static java.util.Map<java.lang.String,java.lang.String> |
validateOptions(java.util.Map<java.lang.String,java.lang.String> options) |
filterSuspectSSTables, getScanners, getScanners, shutdown, worthDroppingTombstonesprotected static final long DEFAULT_MIN_SSTABLE_SIZE
protected static final double DEFAULT_BUCKET_LOW
protected static final double DEFAULT_BUCKET_HIGH
protected static final java.lang.String MIN_SSTABLE_SIZE_KEY
protected static final java.lang.String BUCKET_LOW_KEY
protected static final java.lang.String BUCKET_HIGH_KEY
protected long minSSTableSize
protected double bucketLow
protected double bucketHigh
protected volatile int estimatedRemainingTasks
public SizeTieredCompactionStrategy(ColumnFamilyStore cfs, java.util.Map<java.lang.String,java.lang.String> options)
public AbstractCompactionTask getNextBackgroundTask(int gcBefore)
getNextBackgroundTask in class AbstractCompactionStrategygcBefore - throw away tombstones older than thispublic AbstractCompactionTask getMaximalTask(int gcBefore)
getMaximalTask in class AbstractCompactionStrategygcBefore - throw away tombstones older than thispublic AbstractCompactionTask getUserDefinedTask(java.util.Collection<SSTableReader> sstables, int gcBefore)
getUserDefinedTask in class AbstractCompactionStrategysstables - SSTables to compact. Must be marked as compacting.gcBefore - throw away tombstones older than thispublic int getEstimatedRemainingTasks()
getEstimatedRemainingTasks in class AbstractCompactionStrategypublic long getMaxSSTableSize()
getMaxSSTableSize in class AbstractCompactionStrategypublic static java.util.Map<java.lang.String,java.lang.String> validateOptions(java.util.Map<java.lang.String,java.lang.String> options)
throws ConfigurationException
ConfigurationExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 The Apache Software Foundation