Class TimeWindowCompactionController
java.lang.Object
org.apache.cassandra.db.AbstractCompactionController
org.apache.cassandra.db.compaction.CompactionController
org.apache.cassandra.db.compaction.TimeWindowCompactionController
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class org.apache.cassandra.db.AbstractCompactionController
cfs, gcBefore, tombstoneOption -
Constructor Summary
ConstructorsConstructorDescriptionTimeWindowCompactionController(ColumnFamilyStore cfs, Set<SSTableReader> compacting, long gcBefore, boolean ignoreOverlaps) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanIs overlapped sstables ignored Control whether or not we are taking into account overlapping sstables when looking for fully expired sstables.Methods inherited from class org.apache.cassandra.db.compaction.CompactionController
close, compactingRepaired, getFullyExpiredSSTables, getFullyExpiredSSTables, getFullyExpiredSSTables, getPurgeEvaluator, maybeRefreshOverlaps, shadowSourcesMethods inherited from class org.apache.cassandra.db.AbstractCompactionController
getColumnFamily, getKeyspace
-
Constructor Details
-
TimeWindowCompactionController
public TimeWindowCompactionController(ColumnFamilyStore cfs, Set<SSTableReader> compacting, long gcBefore, boolean ignoreOverlaps)
-
-
Method Details
-
ignoreOverlaps
protected boolean ignoreOverlaps()Description copied from class:CompactionControllerIs overlapped sstables ignored Control whether or not we are taking into account overlapping sstables when looking for fully expired sstables. In order to reduce the amount of work needed, we look for sstables that can be dropped instead of compacted. As a safeguard mechanism, for each time range of data in a sstable, we are checking globally to see if all data of this time range is fully expired before considering to drop the sstable. This strategy can retain for a long time a lot of sstables on disk (see CASSANDRA-13418) so this option control whether or not this check should be ignored. Do NOT call this method in the CompactionController constructor- Overrides:
ignoreOverlapsin classCompactionController- Returns:
- false by default
-