org.apache.cassandra.db.compaction
Class AbstractCompactionTask
java.lang.Object
org.apache.cassandra.db.compaction.AbstractCompactionTask
- Direct Known Subclasses:
- CompactionTask
public abstract class AbstractCompactionTask
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cfs
protected ColumnFamilyStore cfs
sstables
protected java.util.Collection<SSTableReader> sstables
AbstractCompactionTask
public AbstractCompactionTask(ColumnFamilyStore cfs,
java.util.Collection<SSTableReader> sstables)
execute
public abstract int execute(CompactionManager.CompactionExecutorStatsCollector collector)
throws java.io.IOException
- Throws:
java.io.IOException
getColumnFamilyStore
public ColumnFamilyStore getColumnFamilyStore()
getSSTables
public java.util.Collection<SSTableReader> getSSTables()
markSSTablesForCompaction
public boolean markSSTablesForCompaction()
- Try to mark the sstable to compact as compacting.
It returns true if some sstables have been marked for compaction, false
otherwise.
This *must* be called before calling execute(). Moreover,
unmarkSSTables *must* always be called after execute() if this
method returns true.
markSSTablesForCompaction
public boolean markSSTablesForCompaction(int min,
int max)
unmarkSSTables
public void unmarkSSTables()
Copyright © 2011 The Apache Software Foundation