public class CompactionController
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
ColumnFamilyStore |
cfs |
int |
gcBefore |
int |
mergeShardBefore |
Modifier | Constructor and Description |
---|---|
|
CompactionController(ColumnFamilyStore cfs,
java.util.Collection<SSTableReader> sstables,
int gcBefore) |
protected |
CompactionController(ColumnFamilyStore cfs,
int maxValue)
Constructor that subclasses may use when overriding shouldPurge to not need overlappingTree
|
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.lang.String |
getKeyspace() |
void |
invalidateCachedRow(DecoratedKey key) |
void |
removeDeletedInCache(DecoratedKey key) |
boolean |
shouldPurge(DecoratedKey key,
long maxDeletionTimestamp) |
public final ColumnFamilyStore cfs
public final int gcBefore
public final int mergeShardBefore
public CompactionController(ColumnFamilyStore cfs, java.util.Collection<SSTableReader> sstables, int gcBefore)
protected CompactionController(ColumnFamilyStore cfs, int maxValue)
public java.lang.String getKeyspace()
public java.lang.String getColumnFamily()
public boolean shouldPurge(DecoratedKey key, long maxDeletionTimestamp)
public void invalidateCachedRow(DecoratedKey key)
public void removeDeletedInCache(DecoratedKey key)
public AbstractCompactedRow getCompactedRow(java.util.List<SSTableIdentityIterator> rows)
public AbstractCompactedRow getCompactedRow(SSTableIdentityIterator row)
public void close()
Copyright © 2014 The Apache Software Foundation