.bucketLow(0.5) .bucketHigh(1.2) .coldReadsRatioToOmit(0.89) .enabled(true) .minThreshold(2) .maxThreshold(4) .minSSTableSizeInBytes(5000000L) .tombstoneCompactionIntervalInDay(3) .tombstoneThreshold(0.7) .uncheckedTombstoneCompaction(true) .build();
.bucketLow(0.5) .bucketHigh(1.2) .coldReadsRatioToOmit(0.89) .enabled(true) .minThreshold(2) .maxThreshold(4) .minSSTableSizeInBytes(5000000L) .tombstoneCompactionIntervalInDay(3) .tombstoneThreshold(0.7) .uncheckedTombstoneCompaction(true) .build();
private CompactionOptions<?> getCompaction(boolean appendHeavyReadLight) { return appendHeavyReadLight ? SchemaBuilder.sizedTieredStategy().minThreshold(4).maxThreshold(32) : SchemaBuilder.leveledStrategy(); }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_tombstone_threshold_negative() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build(); } }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_tombstone_threshold_out_of_range() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).tombstoneThreshold(1.89).build(); }
/** * Create options for the size-tiered compaction strategy, for use in a CREATE or ALTER TABLE statement. * * @return the options. */ public static TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions sizedTieredStategy() { return new TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions(); }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_cold_read_ratio_out_of_range() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(1.89).build(); }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_cold_read_ratio_negative() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build(); }
/** * Create options for the size-tiered compaction strategy, for use in a CREATE or ALTER TABLE statement. * * @return the options. */ public static TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions sizedTieredStategy() { return new TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions(); }
/** * Create options for the size-tiered compaction strategy, for use in a CREATE or ALTER TABLE statement. * * @return the options. */ public static TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions sizedTieredStategy() { return new TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions(); }
private CompactionOptions<?> getCompaction(boolean appendHeavyReadLight) { return appendHeavyReadLight ? SchemaBuilder.sizedTieredStategy().minThreshold(4).maxThreshold(32) : SchemaBuilder.leveledStrategy(); }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_cold_read_ratio_negative() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build(); }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_cold_read_ratio_out_of_range() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(1.89).build(); }
/** * Create options for the size-tiered compaction strategy, for use in a CREATE or ALTER TABLE * statement. * * @return the options. */ public static TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions sizedTieredStategy() { return new TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions(); }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_tombstone_threshold_negative() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build(); } }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_tombstone_threshold_out_of_range() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).tombstoneThreshold(1.89).build(); }