Class TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions
- java.lang.Object
-
- com.datastax.driver.core.schemabuilder.TableOptions.CompactionOptions<TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions>
-
- com.datastax.driver.core.schemabuilder.TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions
-
- Enclosing class:
- TableOptions.CompactionOptions<T extends TableOptions.CompactionOptions>
public static class TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions extends TableOptions.CompactionOptions<TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions>
Compaction options specific to the date-tiered strategy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTableOptions.CompactionOptions.DateTieredCompactionStrategyOptions.TimeStampResolution-
Nested classes/interfaces inherited from class com.datastax.driver.core.schemabuilder.TableOptions.CompactionOptions
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions, TableOptions.CompactionOptions.LeveledCompactionStrategyOptions, TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions, TableOptions.CompactionOptions.Strategy, TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions
-
-
Method Summary
-
Methods inherited from class com.datastax.driver.core.schemabuilder.TableOptions.CompactionOptions
enabled, freeformOption, tombstoneCompactionIntervalInDay, tombstoneThreshold, uncheckedTombstoneCompaction
-
-
-
-
Method Detail
-
baseTimeSeconds
public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions baseTimeSeconds(Integer baseTimeSeconds)
Sets the size of the first window.If no call is made to this method, the default value set by Cassandra is 3600 (1 hour).
- Parameters:
baseTimeSeconds- the size of the first window.- Returns:
- this object (for call chaining).
-
maxSSTableAgeDays
public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions maxSSTableAgeDays(Integer maxSSTableAgeDays)
Stop compacting SSTables only having data older than these specified days.If no call is made to this method, the default value set by Cassandra is 365.
- Parameters:
maxSSTableAgeDays- the maximum age of the SSTables to compact.- Returns:
- this object (for call chaining).
-
minThreshold
public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions minThreshold(Integer minThreshold)
Sets the minimum number of SSTables to trigger a minor compactionIf no call is made to this method, the default value set by Cassandra is 4.
- Parameters:
minThreshold- the new value.- Returns:
- this object (for call chaining).
-
maxThreshold
public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions maxThreshold(Integer maxThreshold)
Sets the maximum number of SSTables to allow in a minor compaction. In LeveledCompactionStrategy (LCS), it applies to L0 when L0 gets behind, that is, when L0 accumulates more than MAX_COMPACTING_L0 SSTables.If no call is made to this method, the default value set by Cassandra is 32.
- Parameters:
maxThreshold- the new value.- Returns:
- this object (for call chaining).
-
timestampResolution
public TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions timestampResolution(TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions.TimeStampResolution timestampResolution)
Sets the timestamp resolution, depending on the timestamp unit of the data you insert.If no call is made to this method, the default value set by Cassandra is
MICROSECONDS.- Parameters:
timestampResolution-TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions.TimeStampResolution.MICROSECONDSorTableOptions.CompactionOptions.DateTieredCompactionStrategyOptions.TimeStampResolution.MILLISECONDS.- Returns:
- this object (for call chaining).
-
build
public String build()
- Specified by:
buildin classTableOptions.CompactionOptions<TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions>
-
-