Class TimeWindowCompactionController

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class TimeWindowCompactionController
    extends CompactionController
    • Constructor Detail

      • TimeWindowCompactionController

        public TimeWindowCompactionController​(ColumnFamilyStore cfs,
                                              java.util.Set<SSTableReader> compacting,
                                              long gcBefore,
                                              boolean ignoreOverlaps)
    • Method Detail

      • ignoreOverlaps

        protected boolean ignoreOverlaps()
        Description copied from class: CompactionController
        Is 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:
        ignoreOverlaps in class CompactionController
        Returns:
        false by default