TimeWindowCompactionStrategy
@Deprecated public class DateTieredCompactionStrategy extends AbstractCompactionStrategy
AbstractCompactionStrategy.ScannerList
Modifier and Type | Field and Description |
---|---|
protected int |
estimatedRemainingTasks
Deprecated.
|
cfs, COMPACTION_ENABLED, DEFAULT_LOG_ALL_OPTION, DEFAULT_TOMBSTONE_COMPACTION_INTERVAL, DEFAULT_TOMBSTONE_THRESHOLD, DEFAULT_UNCHECKED_TOMBSTONE_COMPACTION_OPTION, disableTombstoneCompactions, isActive, LOG_ALL_OPTION, logAll, ONLY_PURGE_REPAIRED_TOMBSTONES, TOMBSTONE_COMPACTION_INTERVAL_OPTION, TOMBSTONE_THRESHOLD_OPTION, tombstoneCompactionInterval, tombstoneThreshold, UNCHECKED_TOMBSTONE_COMPACTION_OPTION, uncheckedTombstoneCompaction
Constructor and Description |
---|
DateTieredCompactionStrategy(ColumnFamilyStore cfs,
java.util.Map<java.lang.String,java.lang.String> options)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addSSTable(SSTableReader sstable)
Deprecated.
Adds sstable, note that implementations must handle duplicate notifications here (added already being in the compaction strategy)
|
static java.util.List<Pair<SSTableReader,java.lang.Long>> |
createSSTableAndMinTimestampPairs(java.lang.Iterable<SSTableReader> sstables)
Deprecated.
|
int |
getEstimatedRemainingTasks()
Deprecated.
|
java.util.Collection<AbstractCompactionTask> |
getMaximalTask(int gcBefore,
boolean splitOutput)
Deprecated.
|
long |
getMaxSSTableBytes()
Deprecated.
|
AbstractCompactionTask |
getNextBackgroundTask(int gcBefore)
Deprecated.
|
AbstractCompactionTask |
getUserDefinedTask(java.util.Collection<SSTableReader> sstables,
int gcBefore)
Deprecated.
|
java.util.Collection<java.util.Collection<SSTableReader>> |
groupSSTablesForAntiCompaction(java.util.Collection<SSTableReader> sstablesToGroup)
Deprecated.
DTCS should not group sstables for anticompaction - this can mix new and old data
|
void |
removeSSTable(SSTableReader sstable)
Deprecated.
Removes sstable from the strategy, implementations must be able to handle the sstable having already been removed.
|
CompactionLogger.Strategy |
strategyLogger()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
static java.util.Map<java.lang.String,java.lang.String> |
validateOptions(java.util.Map<java.lang.String,java.lang.String> options)
Deprecated.
|
addSSTables, createSSTableMultiWriter, disable, enable, filterSuspectSSTables, getCompactionTask, getDirectories, getMemtableReservedSize, getName, getScanners, getScanners, getScanners, isAffectedByMeteredFlusher, pause, replaceFlushed, replaceSSTables, resume, shouldBeEnabled, shutdown, startup, supportsEarlyOpen, worthDroppingTombstones
public DateTieredCompactionStrategy(ColumnFamilyStore cfs, java.util.Map<java.lang.String,java.lang.String> options)
public AbstractCompactionTask getNextBackgroundTask(int gcBefore)
getNextBackgroundTask
in class AbstractCompactionStrategy
gcBefore
- throw away tombstones older than thispublic static java.util.List<Pair<SSTableReader,java.lang.Long>> createSSTableAndMinTimestampPairs(java.lang.Iterable<SSTableReader> sstables)
public void addSSTable(SSTableReader sstable)
AbstractCompactionStrategy
addSSTable
in class AbstractCompactionStrategy
public void removeSSTable(SSTableReader sstable)
AbstractCompactionStrategy
removeSSTable
in class AbstractCompactionStrategy
public java.util.Collection<AbstractCompactionTask> getMaximalTask(int gcBefore, boolean splitOutput)
getMaximalTask
in class AbstractCompactionStrategy
gcBefore
- throw away tombstones older than thispublic AbstractCompactionTask getUserDefinedTask(java.util.Collection<SSTableReader> sstables, int gcBefore)
getUserDefinedTask
in class AbstractCompactionStrategy
sstables
- SSTables to compact. Must be marked as compacting.gcBefore
- throw away tombstones older than thispublic int getEstimatedRemainingTasks()
getEstimatedRemainingTasks
in class AbstractCompactionStrategy
public long getMaxSSTableBytes()
getMaxSSTableBytes
in class AbstractCompactionStrategy
public java.util.Collection<java.util.Collection<SSTableReader>> groupSSTablesForAntiCompaction(java.util.Collection<SSTableReader> sstablesToGroup)
groupSSTablesForAntiCompaction
in class AbstractCompactionStrategy
public static java.util.Map<java.lang.String,java.lang.String> validateOptions(java.util.Map<java.lang.String,java.lang.String> options) throws ConfigurationException
ConfigurationException
public CompactionLogger.Strategy strategyLogger()
strategyLogger
in class AbstractCompactionStrategy
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009- The Apache Software Foundation