public class CompactionTask extends AbstractCompactionTask
Modifier and Type | Field and Description |
---|---|
protected int |
gcBefore |
protected boolean |
keepOriginals |
protected static org.slf4j.Logger |
logger |
protected static long |
totalBytesCompacted |
cfs, compactionType, isUserDefined, transaction
Constructor and Description |
---|
CompactionTask(ColumnFamilyStore cfs,
LifecycleTransaction txn,
int gcBefore) |
CompactionTask(ColumnFamilyStore cfs,
LifecycleTransaction txn,
int gcBefore,
boolean keepOriginals) |
CompactionTask(ColumnFamilyStore cfs,
LifecycleTransaction txn,
int gcBefore,
boolean offline,
boolean keepOriginals)
Deprecated.
|
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,
Directories directories,
LifecycleTransaction transaction,
java.util.Set<SSTableReader> nonExpiredSSTables) |
protected CompactionController |
getCompactionController(java.util.Set<SSTableReader> toCompact) |
protected Directories |
getDirectories() |
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,
long[] mergedRowCounts,
long startSize,
long endSize) |
execute, setCompactionType, setUserDefined, toString
run
protected static final org.slf4j.Logger logger
protected final int gcBefore
protected final boolean keepOriginals
protected static long totalBytesCompacted
public CompactionTask(ColumnFamilyStore cfs, LifecycleTransaction txn, int gcBefore)
@Deprecated public CompactionTask(ColumnFamilyStore cfs, LifecycleTransaction txn, int gcBefore, boolean offline, boolean keepOriginals)
public CompactionTask(ColumnFamilyStore cfs, LifecycleTransaction txn, int gcBefore, boolean keepOriginals)
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, Directories directories, LifecycleTransaction transaction, java.util.Set<SSTableReader> nonExpiredSSTables)
getCompactionAwareWriter
in class AbstractCompactionTask
public static java.lang.String updateCompactionHistory(java.lang.String keyspaceName, java.lang.String columnFamilyName, long[] mergedRowCounts, long startSize, long endSize)
protected Directories getDirectories()
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)
Copyright © 2016 The Apache Software Foundation