Class IndexSummaryRedistribution
java.lang.Object
org.apache.cassandra.db.compaction.CompactionInfo.Holder
org.apache.cassandra.io.sstable.indexsummary.IndexSummaryRedistribution
-
Constructor Summary
ConstructorsConstructorDescriptionIndexSummaryRedistribution(Map<TableId, LifecycleTransaction> transactions, long nonRedistributingOffHeapSize, long memoryPoolBytes) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisGlobal()if this compaction involves several/all tables we can safely check globalCompactionsPaused in isStopRequested() below<T extends SSTableReader & IndexSummarySupport<T>>
List<T>Methods inherited from class org.apache.cassandra.db.compaction.CompactionInfo.Holder
isStopRequested, stop
-
Constructor Details
-
IndexSummaryRedistribution
public IndexSummaryRedistribution(Map<TableId, LifecycleTransaction> transactions, long nonRedistributingOffHeapSize, long memoryPoolBytes) - Parameters:
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 pool
-
-
Method Details
-
redistributeSummaries
public <T extends SSTableReader & IndexSummarySupport<T>> List<T> redistributeSummaries() throws IOException- Throws:
IOException
-
getCompactionInfo
- Specified by:
getCompactionInfoin classCompactionInfo.Holder
-
isGlobal
public boolean isGlobal()Description copied from class:CompactionInfo.Holderif this compaction involves several/all tables we can safely check globalCompactionsPaused in isStopRequested() below- Specified by:
isGlobalin classCompactionInfo.Holder
-