public class CompactionController
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
ColumnFamilyStore |
cfs |
int |
gcBefore |
int |
mergeShardBefore |
Modifier | Constructor and Description |
---|---|
protected |
CompactionController(ColumnFamilyStore cfs,
int maxValue)
Constructor that subclasses may use when overriding shouldPurge to not need overlappingTree
|
|
CompactionController(ColumnFamilyStore cfs,
java.util.Set<SSTableReader> compacting,
int gcBefore) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
getColumnFamily() |
AbstractCompactedRow |
getCompactedRow(java.util.List<SSTableIdentityIterator> rows) |
AbstractCompactedRow |
getCompactedRow(SSTableIdentityIterator row)
convenience method for single-sstable compactions
|
java.util.Set<SSTableReader> |
getFullyExpiredSSTables() |
static java.util.Set<SSTableReader> |
getFullyExpiredSSTables(ColumnFamilyStore cfStore,
java.util.Set<SSTableReader> compacting,
java.util.Set<SSTableReader> overlapping,
int gcBefore)
Finds expired sstables
works something like this;
1.
|
java.lang.String |
getKeyspace() |
void |
invalidateCachedRow(DecoratedKey key) |
boolean |
shouldPurge(DecoratedKey key,
long maxDeletionTimestamp) |
public final ColumnFamilyStore cfs
public final int gcBefore
public final int mergeShardBefore
protected CompactionController(ColumnFamilyStore cfs, int maxValue)
public CompactionController(ColumnFamilyStore cfs, java.util.Set<SSTableReader> compacting, int gcBefore)
public java.util.Set<SSTableReader> getFullyExpiredSSTables()
public static java.util.Set<SSTableReader> getFullyExpiredSSTables(ColumnFamilyStore cfStore, java.util.Set<SSTableReader> compacting, java.util.Set<SSTableReader> overlapping, int gcBefore)
cfStore
- compacting
- we take the drop-candidates from this set, it is usually the sstables included in the compactionoverlapping
- the sstables that overlap the ones in compacting.gcBefore
- public java.lang.String getKeyspace()
public java.lang.String getColumnFamily()
public boolean shouldPurge(DecoratedKey key, long maxDeletionTimestamp)
public void invalidateCachedRow(DecoratedKey key)
public AbstractCompactedRow getCompactedRow(java.util.List<SSTableIdentityIterator> rows)
public AbstractCompactedRow getCompactedRow(SSTableIdentityIterator row)
public void close()
Copyright © 2013 The Apache Software Foundation