Example usage for org.apache.cassandra.db.compaction AbstractCompactionStrategy TOMBSTONE_THRESHOLD_OPTION

List of usage examples for org.apache.cassandra.db.compaction AbstractCompactionStrategy TOMBSTONE_THRESHOLD_OPTION

Introduction

In this page you can find the example usage for org.apache.cassandra.db.compaction AbstractCompactionStrategy TOMBSTONE_THRESHOLD_OPTION.

Prototype

String TOMBSTONE_THRESHOLD_OPTION

To view the source code for org.apache.cassandra.db.compaction AbstractCompactionStrategy TOMBSTONE_THRESHOLD_OPTION.

Click Source Link

Usage

From source file:com.jeffjirsa.cassandra.db.compaction.TimeWindowCompactionStrategy.java

License:Apache License

public TimeWindowCompactionStrategy(ColumnFamilyStore cfs, Map<String, String> options) {
    super(cfs, options);
    this.estimatedRemainingTasks = 0;
    this.options = new TimeWindowCompactionStrategyOptions(options);
    if (!options.containsKey(AbstractCompactionStrategy.TOMBSTONE_COMPACTION_INTERVAL_OPTION)
            && !options.containsKey(AbstractCompactionStrategy.TOMBSTONE_THRESHOLD_OPTION)) {
        disableTombstoneCompactions = true;
        logger.debug("Disabling tombstone compactions for TWCS");
    } else/* w w w.j  av  a2  s .  c  o  m*/
        logger.debug("Enabling tombstone compactions for TWCS");

}