public class IndexSummaryRedistribution extends CompactionInfo.Holder
Constructor and Description |
---|
IndexSummaryRedistribution(java.util.Map<TableId,LifecycleTransaction> transactions,
long nonRedistributingOffHeapSize,
long memoryPoolBytes) |
Modifier and Type | Method and Description |
---|---|
CompactionInfo |
getCompactionInfo() |
boolean |
isGlobal()
if this compaction involves several/all tables we can safely check globalCompactionsPaused
in isStopRequested() below
|
java.util.List<SSTableReader> |
redistributeSummaries() |
isStopRequested, stop
public IndexSummaryRedistribution(java.util.Map<TableId,LifecycleTransaction> transactions, long nonRedistributingOffHeapSize, long memoryPoolBytes)
transactions
- the transactions for the different keyspaces/tables we are to redistributenonRedistributingOffHeapSize
- the total index summary off heap size for all sstables we were not able to mark compacting (due to them being involved in other compactions)memoryPoolBytes
- size of the memory poolpublic java.util.List<SSTableReader> redistributeSummaries() throws java.io.IOException
java.io.IOException
public CompactionInfo getCompactionInfo()
getCompactionInfo
in class CompactionInfo.Holder
public boolean isGlobal()
CompactionInfo.Holder
isGlobal
in class CompactionInfo.Holder
Copyright © 2009- The Apache Software Foundation