public static class TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions extends TableOptions.CompactionOptions<TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions>
Modifier and Type | Class and Description |
---|---|
static class |
TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.CompactionWindowUnit |
static class |
TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.TimeStampResolution |
TableOptions.CompactionOptions.DateTieredCompactionStrategyOptions, TableOptions.CompactionOptions.LeveledCompactionStrategyOptions, TableOptions.CompactionOptions.SizeTieredCompactionStrategyOptions, TableOptions.CompactionOptions.Strategy, TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions
Modifier and Type | Method and Description |
---|---|
TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions |
bucketHigh(Double bucketHigh)
Size-tiered compaction strategy (STCS) is used in the newest window, this method sets the bucketHigh value used in STCS.
|
TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions |
bucketLow(Double bucketLow)
Size-tiered compaction strategy (STCS) is used in the newest window, this method sets the bucketLow value used in STCS.
|
String |
build() |
TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions |
compactionWindowSize(Integer compactionWindowSize)
Sets the number of units that make up a window.
|
TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions |
compactionWindowUnit(TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.CompactionWindowUnit compactionWindowUnit)
Sets the time unit used to define the window size
If no call is made to this method, the default value set by Cassandra is
DAYS . |
TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions |
maxThreshold(Integer maxThreshold)
Sets the maximum number of SSTables to allow in a minor compaction.
|
TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions |
minSSTableSizeInBytes(Long minSSTableSize)
Size-tiered compaction strategy (STCS) is used in the newest window, this method sets the minSSTableSize value used in STCS.
|
TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions |
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.TimeWindowCompactionStrategyOptions |
timestampResolution(TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.TimeStampResolution timestampResolution)
Sets the timestamp resolution, depending on the timestamp unit of the data you insert.
|
TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions |
unsafeAggressiveSSTableExpiration(Boolean unsafeAggressiveSSTableExpiration)
Allow expired sstables to be dropped without checking if its data is shadowing other sstables.
|
enabled, freeformOption, tombstoneCompactionIntervalInDay, tombstoneThreshold, uncheckedTombstoneCompaction
public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions bucketHigh(Double bucketHigh)
bucketHigh
- the new value.public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions bucketLow(Double bucketLow)
bucketLow
- the new value.public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions compactionWindowUnit(TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.CompactionWindowUnit compactionWindowUnit)
DAYS
.compactionWindowUnit
- TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.CompactionWindowUnit.MINUTES
, TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.CompactionWindowUnit.HOURS
or TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.CompactionWindowUnit.DAYS
.public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions compactionWindowSize(Integer compactionWindowSize)
compactionWindowSize
- the size of the first window.public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions minThreshold(Integer minThreshold)
minThreshold
- the new value.public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions maxThreshold(Integer maxThreshold)
maxThreshold
- the new value.public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions minSSTableSizeInBytes(Long minSSTableSize)
minSSTableSize
- the new value.public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions timestampResolution(TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.TimeStampResolution timestampResolution)
MICROSECONDS
.timestampResolution
- TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.TimeStampResolution.MICROSECONDS
or TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.TimeStampResolution.MILLISECONDS
.public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions unsafeAggressiveSSTableExpiration(Boolean unsafeAggressiveSSTableExpiration)
unsafeAggressiveSSTableExpiration
- whether to enable unsafe aggressive sstable expiration option.public String build()
build
in class TableOptions.CompactionOptions<TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions>
Copyright © 2012–2018. All rights reserved.