Class ActiveCompactions
java.lang.Object
org.apache.cassandra.db.compaction.ActiveCompactions
- All Implemented Interfaces:
ActiveCompactionsTracker
-
Field Summary
Fields inherited from interface org.apache.cassandra.db.compaction.ActiveCompactionsTracker
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the estimated number of bytes remaining to write per sstable directoryvoidgetCompactionsForSSTable(SSTableReader sstable, OperationType compactionType) Iterates over the active compactions and tries to find CompactionInfos with the given compactionType for the given sstable Number of entries in compactions should be small (< 10) but avoid calling in any time-sensitive context
-
Constructor Details
-
ActiveCompactions
public ActiveCompactions()
-
-
Method Details
-
getCompactions
-
beginCompaction
- Specified by:
beginCompactionin interfaceActiveCompactionsTracker
-
finishCompaction
- Specified by:
finishCompactionin interfaceActiveCompactionsTracker
-
estimatedRemainingWriteBytes
Get the estimated number of bytes remaining to write per sstable directory -
getCompactionsForSSTable
public Collection<CompactionInfo> getCompactionsForSSTable(SSTableReader sstable, OperationType compactionType) Iterates over the active compactions and tries to find CompactionInfos with the given compactionType for the given sstable Number of entries in compactions should be small (< 10) but avoid calling in any time-sensitive context
-