public abstract class AbstractCompactionTask extends DiskAwareRunnable
Modifier and Type | Field and Description |
---|---|
protected ColumnFamilyStore |
cfs |
protected OperationType |
compactionType |
protected boolean |
isUserDefined |
protected java.lang.Iterable<SSTableReader> |
sstables |
Constructor and Description |
---|
AbstractCompactionTask(ColumnFamilyStore cfs,
java.lang.Iterable<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) |
protected Directories |
getDirectories()
Get sstable directories for the CF.
|
AbstractCompactionTask |
setCompactionType(OperationType compactionType) |
AbstractCompactionTask |
setUserDefined(boolean isUserDefined) |
java.lang.String |
toString() |
getExpectedWriteSize, reduceScopeForLimitedSpace, runMayThrow, runWith
run
protected final ColumnFamilyStore cfs
protected java.lang.Iterable<SSTableReader> sstables
protected boolean isUserDefined
protected OperationType compactionType
public AbstractCompactionTask(ColumnFamilyStore cfs, java.lang.Iterable<SSTableReader> sstables)
cfs
- sstables
- must be marked compactingpublic int execute(CompactionManager.CompactionExecutorStatsCollector collector)
protected abstract int executeInternal(CompactionManager.CompactionExecutorStatsCollector collector)
protected Directories getDirectories()
DiskAwareRunnable
getDirectories
in class DiskAwareRunnable
public AbstractCompactionTask setUserDefined(boolean isUserDefined)
public AbstractCompactionTask setCompactionType(OperationType compactionType)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013 The Apache Software Foundation