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,
boolean offline) |
Modifier and Type | Method and Description |
---|---|
static long |
addToTotalBytesCompacted(long bytesCompacted) |
protected void |
checkAvailableDiskSpace(long estimatedSSTables,
long expectedWriteSize) |
protected int |
executeInternal(CompactionManager.CompactionExecutorStatsCollector collector) |
CompactionAwareWriter |
getCompactionAwareWriter(ColumnFamilyStore cfs,
java.util.Set<SSTableReader> allSSTables,
java.util.Set<SSTableReader> nonExpiredSSTables) |
protected CompactionController |
getCompactionController(java.util.Set<SSTableReader> toCompact) |
static SSTableFormat.Type |
getFormatType(java.util.Collection<SSTableReader> sstables) |
protected int |
getLevel() |
static long |
getMaxDataAge(java.util.Collection<SSTableReader> sstables) |
static long |
getMinRepairedAt(java.util.Set<SSTableReader> actuallyCompact) |
protected boolean |
partialCompactionsAcceptable() |
boolean |
reduceScopeForLimitedSpace() |
protected void |
runMayThrow()
For internal use and testing only.
|
static java.lang.String |
updateCompactionHistory(java.lang.String keyspaceName,
java.lang.String columnFamilyName,
AbstractCompactionIterable ci,
long startSize,
long endSize) |
execute, setCompactionType, setUserDefined, toString
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, boolean offline)
public static long addToTotalBytesCompacted(long bytesCompacted)
protected int executeInternal(CompactionManager.CompactionExecutorStatsCollector collector)
executeInternal
in class AbstractCompactionTask
public boolean reduceScopeForLimitedSpace()
protected void runMayThrow() throws java.lang.Exception
runMayThrow
in class WrappedRunnable
java.lang.Exception
public CompactionAwareWriter getCompactionAwareWriter(ColumnFamilyStore cfs, java.util.Set<SSTableReader> allSSTables, java.util.Set<SSTableReader> nonExpiredSSTables)
getCompactionAwareWriter
in class AbstractCompactionTask
public static java.lang.String updateCompactionHistory(java.lang.String keyspaceName, java.lang.String columnFamilyName, AbstractCompactionIterable ci, long startSize, long endSize)
public static long getMinRepairedAt(java.util.Set<SSTableReader> actuallyCompact)
protected void checkAvailableDiskSpace(long estimatedSSTables, long expectedWriteSize)
protected int getLevel()
protected CompactionController getCompactionController(java.util.Set<SSTableReader> toCompact)
protected boolean partialCompactionsAcceptable()
public static long getMaxDataAge(java.util.Collection<SSTableReader> sstables)
public static SSTableFormat.Type getFormatType(java.util.Collection<SSTableReader> sstables)
Copyright © 2015 The Apache Software Foundation