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) |
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
|
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 java.util.Collection<CompactionInfo> getCompactionsForSSTable(SSTableReader sstable, OperationType compactionType)
Copyright © 2009-2022 The Apache Software Foundation