Class ActiveCompactions
- java.lang.Object
-
- org.apache.cassandra.db.compaction.ActiveCompactions
-
- All Implemented Interfaces:
ActiveCompactionsTracker
public class ActiveCompactions extends java.lang.Object implements ActiveCompactionsTracker
-
-
Field Summary
-
Fields inherited from interface org.apache.cassandra.db.compaction.ActiveCompactionsTracker
NOOP
-
-
Constructor Summary
Constructors Constructor Description ActiveCompactions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginCompaction(CompactionInfo.Holder ci)
java.util.Map<File,java.lang.Long>
estimatedRemainingWriteBytes()
Get the estimated number of bytes remaining to write per sstable directoryvoid
finishCompaction(CompactionInfo.Holder ci)
java.util.List<CompactionInfo.Holder>
getCompactions()
java.util.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
-
-
-
Method Detail
-
getCompactions
public java.util.List<CompactionInfo.Holder> getCompactions()
-
beginCompaction
public void beginCompaction(CompactionInfo.Holder ci)
- Specified by:
beginCompaction
in interfaceActiveCompactionsTracker
-
finishCompaction
public void finishCompaction(CompactionInfo.Holder ci)
- Specified by:
finishCompaction
in interfaceActiveCompactionsTracker
-
estimatedRemainingWriteBytes
public java.util.Map<File,java.lang.Long> estimatedRemainingWriteBytes()
Get the estimated number of bytes remaining to write per sstable directory
-
getCompactionsForSSTable
public java.util.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
-
-