public static class TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions extends TableOptions.CompactionOptions<TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions>
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions, TableOptions.CompactionOptions.LeveledCompactionStrategyOptions, TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions, TableOptions.CompactionOptions.Strategy
Modifier and Type | Method and Description |
---|---|
TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions |
bucketHigh(Double bucketHigh)
Size-tiered compaction strategy (STCS) considers SSTables to be within the same bucket if the SSTable size diverges by 50%
or less from the default bucket_low and default bucket_high values: [average-size × bucket_low, average-size × bucket_high].
|
TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions |
bucketLow(Double bucketLow)
Size-tiered compaction strategy (STCS) considers SSTables to be within the same bucket if the SSTable size diverges by 50%
or less from the default bucket_low and default bucket_high values: [average-size × bucket_low, average-size × bucket_high].
|
String |
build() |
TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions |
coldReadsRatioToOmit(Double coldReadsRatio)
The maximum percentage of reads/sec that ignored SSTables may account for.
|
TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions |
maxThreshold(Integer maxThreshold)
Sets the maximum number of SSTables to allow in a minor compaction.
|
TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions |
minSSTableSizeInBytes(Long minSSTableSize)
The SizeTieredCompactionStrategy groups SSTables for compaction into buckets.
|
TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions |
minThreshold(Integer minThreshold)
Sets the minimum number of SSTables to trigger a minor compaction
If no call is made to this method, the default value set by Cassandra is 4.
|
enabled, freeformOption, tombstoneCompactionIntervalInDay, tombstoneThreshold, uncheckedTombstoneCompaction
public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions bucketHigh(Double bucketHigh)
bucketHigh
- the new value.public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions bucketLow(Double bucketLow)
bucketLow
- the new value.public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions coldReadsRatioToOmit(Double coldReadsRatio)
coldReadsRatio
- the new value.public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions minThreshold(Integer minThreshold)
minThreshold
- the new value.public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions maxThreshold(Integer maxThreshold)
maxThreshold
- the new value.public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions minSSTableSizeInBytes(Long minSSTableSize)
minSSTableSize
- the new value.public String build()
build
in class TableOptions.CompactionOptions<TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions>