public static class TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions extends TableOptions.CompactionOptions<TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions>
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions, TableOptions.CompactionOptions.LeveledCompactionStrategyOptions, TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions, TableOptions.CompactionOptions.Strategy, TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions
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
|
enabled, freeformOption, tombstoneCompactionIntervalInDay, tombstoneThreshold, uncheckedTombstoneCompaction
public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions bucketHigh(Double bucketHigh)
If no call is made to this method, the default value set by Cassandra is 1.5.
bucketHigh
- the new value.public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions bucketLow(Double bucketLow)
If no call is made to this method, the default value set by Cassandra is 0.5.
bucketLow
- the new value.public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions coldReadsRatioToOmit(Double coldReadsRatio)
If no call is made to this method, the default value set by Cassandra is 0.0 (disabled).
coldReadsRatio
- the new value.public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions minThreshold(Integer minThreshold)
If no call is made to this method, the default value set by Cassandra is 4.
minThreshold
- the new value.public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions maxThreshold(Integer maxThreshold)
If no call is made to this method, the default value set by Cassandra is 32.
maxThreshold
- the new value.public TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions minSSTableSizeInBytes(Long minSSTableSize)
If no call is made to this method, the default value set by Cassandra is 52428800 (50 MB).
minSSTableSize
- the new value.public String build()
build
in class TableOptions.CompactionOptions<TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions>
Copyright © 2012–2024. All rights reserved.