public class CompactionTask extends AbstractCompactionTask
Modifier and Type | Field and Description |
---|---|
protected int |
gcBefore |
protected static org.slf4j.Logger |
logger |
protected static long |
totalBytesCompacted |
cfs, compactionType, isUserDefined, sstables
Constructor and Description |
---|
CompactionTask(ColumnFamilyStore cfs,
java.lang.Iterable<SSTableReader> sstables,
int gcBefore) |
Modifier and Type | Method and Description |
---|---|
static long |
addToTotalBytesCompacted(long bytesCompacted) |
protected void |
checkAvailableDiskSpace(long estimatedSSTables) |
protected int |
executeInternal(CompactionManager.CompactionExecutorStatsCollector collector) |
protected CompactionController |
getCompactionController(java.util.Set<SSTableReader> toCompact) |
long |
getExpectedWriteSize() |
protected int |
getLevel() |
static long |
getMaxDataAge(java.util.Collection<SSTableReader> sstables) |
protected boolean |
newSSTableSegmentThresholdReached(SSTableWriter writer) |
protected boolean |
partialCompactionsAcceptable() |
boolean |
reduceScopeForLimitedSpace() |
protected void |
replaceCompactedSSTables(java.util.Collection<SSTableReader> compacted,
java.util.Collection<SSTableReader> replacements) |
protected void |
runMayThrow()
For internal use and testing only.
|
execute, getDirectories, setCompactionType, setUserDefined, toString
getWriteDirectory
run
protected static final org.slf4j.Logger logger
protected final int gcBefore
protected static long totalBytesCompacted
public CompactionTask(ColumnFamilyStore cfs, java.lang.Iterable<SSTableReader> sstables, int gcBefore)
public static long addToTotalBytesCompacted(long bytesCompacted)
protected int executeInternal(CompactionManager.CompactionExecutorStatsCollector collector)
executeInternal
in class AbstractCompactionTask
public long getExpectedWriteSize()
public boolean reduceScopeForLimitedSpace()
protected void runMayThrow() throws java.lang.Exception
runMayThrow
in class WrappedRunnable
java.lang.Exception
protected void checkAvailableDiskSpace(long estimatedSSTables)
protected int getLevel()
protected void replaceCompactedSSTables(java.util.Collection<SSTableReader> compacted, java.util.Collection<SSTableReader> replacements)
protected CompactionController getCompactionController(java.util.Set<SSTableReader> toCompact)
protected boolean partialCompactionsAcceptable()
protected boolean newSSTableSegmentThresholdReached(SSTableWriter writer)
public static long getMaxDataAge(java.util.Collection<SSTableReader> sstables)
Copyright © 2015 The Apache Software Foundation