Package org.apache.cassandra.db
Class AbstractCompactionController
- java.lang.Object
-
- org.apache.cassandra.db.AbstractCompactionController
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
CompactionController
public abstract class AbstractCompactionController extends java.lang.Object implements java.lang.AutoCloseable
AbstractCompactionController allows custom implementations of the CompactionController for use in tooling, without being tied to the SSTableReader and local filesystem
-
-
Field Summary
Fields Modifier and Type Field Description ColumnFamilyStore
cfs
long
gcBefore
CompactionParams.TombstoneOption
tombstoneOption
-
Constructor Summary
Constructors Constructor Description AbstractCompactionController(ColumnFamilyStore cfs, long gcBefore, CompactionParams.TombstoneOption tombstoneOption)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
compactingRepaired()
java.lang.String
getColumnFamily()
java.lang.String
getKeyspace()
abstract java.util.function.LongPredicate
getPurgeEvaluator(DecoratedKey key)
java.lang.Iterable<UnfilteredRowIterator>
shadowSources(DecoratedKey key, boolean tombstoneOnly)
-
-
-
Field Detail
-
cfs
public final ColumnFamilyStore cfs
-
gcBefore
public final long gcBefore
-
tombstoneOption
public final CompactionParams.TombstoneOption tombstoneOption
-
-
Constructor Detail
-
AbstractCompactionController
public AbstractCompactionController(ColumnFamilyStore cfs, long gcBefore, CompactionParams.TombstoneOption tombstoneOption)
-
-
Method Detail
-
compactingRepaired
public abstract boolean compactingRepaired()
-
getKeyspace
public java.lang.String getKeyspace()
-
getColumnFamily
public java.lang.String getColumnFamily()
-
shadowSources
public java.lang.Iterable<UnfilteredRowIterator> shadowSources(DecoratedKey key, boolean tombstoneOnly)
-
getPurgeEvaluator
public abstract java.util.function.LongPredicate getPurgeEvaluator(DecoratedKey key)
-
-