|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.db.compaction.AbstractCompactionTask
org.apache.cassandra.db.compaction.CompactionTask
org.apache.cassandra.db.compaction.LeveledCompactionTask
public class LeveledCompactionTask
| Field Summary |
|---|
| Fields inherited from class org.apache.cassandra.db.compaction.CompactionTask |
|---|
compactionFileLocation, gcBefore, isUserDefined, totalBytesCompacted |
| Fields inherited from class org.apache.cassandra.db.compaction.AbstractCompactionTask |
|---|
cfs, sstables |
| Constructor Summary | |
|---|---|
LeveledCompactionTask(ColumnFamilyStore cfs,
java.util.Collection<SSTableReader> sstables,
int gcBefore,
int sstableSizeInMB)
|
|
| Method Summary | |
|---|---|
protected boolean |
allowSingletonCompaction()
extend this if the overridden compaction strategy requires single files to be compacted to function properly |
int |
execute(CompactionManager.CompactionExecutorStatsCollector collector)
For internal use and testing only. |
boolean |
isDone()
|
protected boolean |
newSSTableSegmentThresholdReached(SSTableWriter writer,
long position)
|
| Methods inherited from class org.apache.cassandra.db.compaction.CompactionTask |
|---|
addToTotalBytesCompacted, compactionFileLocation, getMaxDataAge, isUserDefined |
| Methods inherited from class org.apache.cassandra.db.compaction.AbstractCompactionTask |
|---|
getColumnFamilyStore, getSSTables, markSSTablesForCompaction, markSSTablesForCompaction, unmarkSSTables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LeveledCompactionTask(ColumnFamilyStore cfs,
java.util.Collection<SSTableReader> sstables,
int gcBefore,
int sstableSizeInMB)
| Method Detail |
|---|
public int execute(CompactionManager.CompactionExecutorStatsCollector collector)
throws java.io.IOException
CompactionTask
execute in class CompactionTaskjava.io.IOExceptionpublic boolean isDone()
protected boolean newSSTableSegmentThresholdReached(SSTableWriter writer,
long position)
newSSTableSegmentThresholdReached in class CompactionTaskprotected boolean allowSingletonCompaction()
CompactionTask
allowSingletonCompaction in class CompactionTask
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||