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() | 
| 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(long expectedSize) | 
| 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, toStringrunprotected 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 AbstractCompactionTaskpublic boolean reduceScopeForLimitedSpace(long expectedSize)
protected void runMayThrow()
                    throws java.lang.Exception
runMayThrow in class WrappedRunnablejava.lang.Exceptionpublic CompactionAwareWriter getCompactionAwareWriter(ColumnFamilyStore cfs, Directories directories, LifecycleTransaction transaction, java.util.Set<SSTableReader> nonExpiredSSTables)
getCompactionAwareWriter in class AbstractCompactionTaskpublic 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()
protected int getLevel()
protected CompactionController getCompactionController(java.util.Set<SSTableReader> toCompact)
protected boolean partialCompactionsAcceptable()
public static long getMaxDataAge(java.util.Collection<SSTableReader> sstables)
Copyright © 2018 The Apache Software Foundation