.baseTimeSeconds(1) .minThreshold(2) .maxThreshold(3) .maxSSTableAgeDays(4) .timestampResolution(TimeStampResolution.MILLISECONDS))
@Test(groups = "unit") public void should_create_date_tiered_compaction_option() throws Exception { // When String built = dateTieredStrategy() .baseTimeSeconds(7200) .enabled(true) .maxSSTableAgeDays(400) .minThreshold(2) .maxThreshold(4) .timestampResolution( DateTieredCompactionStrategyOptions.TimeStampResolution.MICROSECONDS) .tombstoneCompactionIntervalInDay(3) .tombstoneThreshold(0.7) .uncheckedTombstoneCompaction(true) .build(); // Then assertThat(built) .isEqualTo( "{'class' : 'DateTieredCompactionStrategy', " + "'enabled' : true, " + "'tombstone_compaction_interval' : 3, " + "'tombstone_threshold' : 0.7, " + "'unchecked_tombstone_compaction' : true, " + "'base_time_seconds' : 7200, " + "'max_sstable_age_days' : 400, " + "'min_threshold' : 2, " + "'max_threshold' : 4, " + "'timestamp_resolution' : 'MICROSECONDS'}"); }
@Test(groups = "unit") public void should_create_date_tiered_compaction_option() throws Exception { // When String built = dateTieredStrategy() .baseTimeSeconds(7200) .enabled(true) .maxSSTableAgeDays(400) .minThreshold(2) .maxThreshold(4) .timestampResolution( DateTieredCompactionStrategyOptions.TimeStampResolution.MICROSECONDS) .tombstoneCompactionIntervalInDay(3) .tombstoneThreshold(0.7) .uncheckedTombstoneCompaction(true) .build(); // Then assertThat(built) .isEqualTo( "{'class' : 'DateTieredCompactionStrategy', " + "'enabled' : true, " + "'tombstone_compaction_interval' : 3, " + "'tombstone_threshold' : 0.7, " + "'unchecked_tombstone_compaction' : true, " + "'base_time_seconds' : 7200, " + "'max_sstable_age_days' : 400, " + "'min_threshold' : 2, " + "'max_threshold' : 4, " + "'timestamp_resolution' : 'MICROSECONDS'}"); }