Class SingleSSTableLCSTask
- java.lang.Object
-
- org.apache.cassandra.utils.WrappedRunnable
-
- org.apache.cassandra.db.compaction.AbstractCompactionTask
-
- org.apache.cassandra.db.compaction.SingleSSTableLCSTask
-
- All Implemented Interfaces:
java.lang.Runnable
public class SingleSSTableLCSTask extends AbstractCompactionTask
Special compaction task that does not do any compaction, instead it just mutates the level metadata on the sstable and notifies the compaction strategy.
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.db.compaction.AbstractCompactionTask
cfs, compactionType, isUserDefined, transaction
-
-
Constructor Summary
Constructors Constructor Description SingleSSTableLCSTask(ColumnFamilyStore cfs, LifecycleTransaction txn, int level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
executeInternal(ActiveCompactionsTracker activeCompactions)
CompactionAwareWriter
getCompactionAwareWriter(ColumnFamilyStore cfs, Directories directories, LifecycleTransaction txn, java.util.Set<SSTableReader> nonExpiredSSTables)
protected void
runMayThrow()
-
Methods inherited from class org.apache.cassandra.db.compaction.AbstractCompactionTask
execute, setCompactionType, setUserDefined, toString
-
Methods inherited from class org.apache.cassandra.utils.WrappedRunnable
run
-
-
-
-
Constructor Detail
-
SingleSSTableLCSTask
public SingleSSTableLCSTask(ColumnFamilyStore cfs, LifecycleTransaction txn, int level)
-
-
Method Detail
-
getCompactionAwareWriter
public CompactionAwareWriter getCompactionAwareWriter(ColumnFamilyStore cfs, Directories directories, LifecycleTransaction txn, java.util.Set<SSTableReader> nonExpiredSSTables)
- Specified by:
getCompactionAwareWriter
in classAbstractCompactionTask
-
executeInternal
protected int executeInternal(ActiveCompactionsTracker activeCompactions)
- Specified by:
executeInternal
in classAbstractCompactionTask
-
runMayThrow
protected void runMayThrow()
- Specified by:
runMayThrow
in classWrappedRunnable
-
-