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
|
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
|
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)
If no call is made to this method, the default value set by Cassandra is 1.5.
bucketHigh
- the new value.public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions 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.TimeWindowCompactionStrategyOptions compactionWindowUnit(TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.CompactionWindowUnit compactionWindowUnit)
If no call is made to this method, the default value set by Cassandra is 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)
If no call is made to this method, the default value set by Cassandra is 1.
compactionWindowSize
- the size of the first window.public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions 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.TimeWindowCompactionStrategyOptions 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.TimeWindowCompactionStrategyOptions 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 TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions timestampResolution(TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.TimeStampResolution timestampResolution)
If no call is made to this method, the default value set by Cassandra is MICROSECONDS
.
timestampResolution
- TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.TimeStampResolution.MICROSECONDS
or TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions.TimeStampResolution.MILLISECONDS
.public TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions unsafeAggressiveSSTableExpiration(Boolean unsafeAggressiveSSTableExpiration)
If no call is made to this method, the default value set by Cassandra is false.
unsafeAggressiveSSTableExpiration
- whether to enable unsafe aggressive sstable
expiration option.public String build()
build
in class TableOptions.CompactionOptions<TableOptions.CompactionOptions.TimeWindowCompactionStrategyOptions>
Copyright © 2012–2019. All rights reserved.