public abstract class AbstractCompactionTask extends WrappedRunnable
| Modifier and Type | Field and Description | 
|---|---|
| protected ColumnFamilyStore | cfs | 
| protected OperationType | compactionType | 
| protected boolean | isUserDefined | 
| protected LifecycleTransaction | transaction | 
| Constructor and Description | 
|---|
| AbstractCompactionTask(ColumnFamilyStore cfs,
                      LifecycleTransaction transaction) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | execute(CompactionManager.CompactionExecutorStatsCollector collector)executes the task and unmarks sstables compacting | 
| protected abstract int | executeInternal(CompactionManager.CompactionExecutorStatsCollector collector) | 
| abstract CompactionAwareWriter | getCompactionAwareWriter(ColumnFamilyStore cfs,
                        Directories directories,
                        LifecycleTransaction txn,
                        java.util.Set<SSTableReader> nonExpiredSSTables) | 
| AbstractCompactionTask | setCompactionType(OperationType compactionType) | 
| AbstractCompactionTask | setUserDefined(boolean isUserDefined) | 
| java.lang.String | toString() | 
run, runMayThrowprotected final ColumnFamilyStore cfs
protected LifecycleTransaction transaction
protected boolean isUserDefined
protected OperationType compactionType
public AbstractCompactionTask(ColumnFamilyStore cfs, LifecycleTransaction transaction)
cfs - transaction - the modifying managing the status of the sstables we're replacingpublic int execute(CompactionManager.CompactionExecutorStatsCollector collector)
public abstract CompactionAwareWriter getCompactionAwareWriter(ColumnFamilyStore cfs, Directories directories, LifecycleTransaction txn, java.util.Set<SSTableReader> nonExpiredSSTables)
protected abstract int executeInternal(CompactionManager.CompactionExecutorStatsCollector collector)
public AbstractCompactionTask setUserDefined(boolean isUserDefined)
public AbstractCompactionTask setCompactionType(OperationType compactionType)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 The Apache Software Foundation