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, worthDroppingTombstones
protected 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 AbstractCompactionStrategy
gcBefore
- throw away tombstones older than thispublic AbstractCompactionTask getMaximalTask(int gcBefore)
getMaximalTask
in class AbstractCompactionStrategy
gcBefore
- throw away tombstones older than thispublic AbstractCompactionTask getUserDefinedTask(java.util.Collection<SSTableReader> sstables, int gcBefore)
getUserDefinedTask
in class AbstractCompactionStrategy
sstables
- SSTables to compact. Must be marked as compacting.gcBefore
- throw away tombstones older than thispublic int getEstimatedRemainingTasks()
getEstimatedRemainingTasks
in class AbstractCompactionStrategy
public long getMaxSSTableSize()
getMaxSSTableSize
in class AbstractCompactionStrategy
public static java.util.Map<java.lang.String,java.lang.String> validateOptions(java.util.Map<java.lang.String,java.lang.String> options) throws ConfigurationException
ConfigurationException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013 The Apache Software Foundation