public class ActiveCompactions extends java.lang.Object implements ActiveCompactionsTracker
NOOP
Constructor and Description |
---|
ActiveCompactions() |
Modifier and Type | Method and Description |
---|---|
void |
beginCompaction(CompactionInfo.Holder ci) |
void |
finishCompaction(CompactionInfo.Holder ci) |
CompactionInfo |
getCompactionForSSTable(SSTableReader sstable)
Iterates over the active compactions and tries to find the CompactionInfo for the given sstable
Number of entries in compactions should be small (< 10) but avoid calling in any time-sensitive context
|
java.util.List<CompactionInfo.Holder> |
getCompactions() |
public java.util.List<CompactionInfo.Holder> getCompactions()
public void beginCompaction(CompactionInfo.Holder ci)
beginCompaction
in interface ActiveCompactionsTracker
public void finishCompaction(CompactionInfo.Holder ci)
finishCompaction
in interface ActiveCompactionsTracker
public CompactionInfo getCompactionForSSTable(SSTableReader sstable)
Copyright © 2009-2020 The Apache Software Foundation