public static class TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions extends TableOptions.CompactionOptions<TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions>
Modifier and Type | Class and Description |
---|---|
static class |
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions.TimeStampResolution |
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions, TableOptions.CompactionOptions.LeveledCompactionStrategyOptions, TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions, TableOptions.CompactionOptions.Strategy
Modifier and Type | Method and Description |
---|---|
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions |
baseTimeSeconds(Integer baseTimeSeconds)
Sets the size of the first window.
|
String |
build() |
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions |
maxSSTableAgeDays(Integer maxSSTableAgeDays)
Stop compacting SSTables only having data older than these specified days.
|
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions |
maxThreshold(Integer maxThreshold)
Sets the maximum number of SSTables to allow in a minor compaction.
|
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions |
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.
|
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions |
timestampResolution(TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions.TimeStampResolution timestampResolution)
Sets the timestamp resolution, depending on the timestamp unit of the data you insert.
|
enabled, freeformOption, tombstoneCompactionIntervalInDay, tombstoneThreshold, uncheckedTombstoneCompaction
public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions baseTimeSeconds(Integer baseTimeSeconds)
baseTimeSeconds
- the size of the first window.public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions maxSSTableAgeDays(Integer maxSSTableAgeDays)
maxSSTableAgeDays
- the maximum age of the SSTables to compact.public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions minThreshold(Integer minThreshold)
minThreshold
- the new value.public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions maxThreshold(Integer maxThreshold)
maxThreshold
- the new value.public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions timestampResolution(TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions.TimeStampResolution timestampResolution)
MICROSECONDS
.timestampResolution
- TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions.TimeStampResolution.MICROSECONDS
or TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions.TimeStampResolution.MILLISECONDS
.public String build()
build
in class TableOptions.CompactionOptions<TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions>
Copyright © 2012–2018. All rights reserved.