public static class TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions extends TableOptions.CompactionOptions<TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions>
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
|
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions |
timestampResolution(com.datastax.driver.core.schemabuilder.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)
If no call is made to this method, the default value set by Cassandra is 3600 (1 hour).
baseTimeSeconds
- the size of the first window.public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions maxSSTableAgeDays(Integer maxSSTableAgeDays)
If no call is made to this method, the default value set by Cassandra is 365.
maxSSTableAgeDays
- the maximum age of the SSTables to compact.public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions 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.DateTieredCompactionStrategyOptions 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.DateTieredCompactionStrategyOptions timestampResolution(com.datastax.driver.core.schemabuilder.TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions.TimeStampResolution timestampResolution)
If no call is made to this method, the default value set by Cassandra is MICROSECONDS
.
timestampResolution
- TimeStampResolution#MICROSECONDS
or TimeStampResolution#MILLISECONDS
.public String build()
build
in class TableOptions.CompactionOptions<TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions>
Copyright © 2012–2015. All rights reserved.