public abstract class AbstractCompactionTask extends WrappedRunnable
Modifier and Type | Field and Description |
---|---|
protected ColumnFamilyStore |
cfs |
protected OperationType |
compactionType |
protected boolean |
isUserDefined |
protected java.util.Set<SSTableReader> |
sstables |
Constructor and Description |
---|
AbstractCompactionTask(ColumnFamilyStore cfs,
java.util.Set<SSTableReader> sstables) |
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,
java.util.Set<SSTableReader> allSSTables,
java.util.Set<SSTableReader> nonExpiredSSTables) |
AbstractCompactionTask |
setCompactionType(OperationType compactionType) |
AbstractCompactionTask |
setUserDefined(boolean isUserDefined) |
java.lang.String |
toString() |
run, runMayThrow
protected final ColumnFamilyStore cfs
protected java.util.Set<SSTableReader> sstables
protected boolean isUserDefined
protected OperationType compactionType
public AbstractCompactionTask(ColumnFamilyStore cfs, java.util.Set<SSTableReader> sstables)
cfs
- sstables
- must be marked compactingpublic int execute(CompactionManager.CompactionExecutorStatsCollector collector)
public abstract CompactionAwareWriter getCompactionAwareWriter(ColumnFamilyStore cfs, java.util.Set<SSTableReader> allSSTables, 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.Object
Copyright © 2015 The Apache Software Foundation