Class PendingRepairHolder
java.lang.Object
org.apache.cassandra.db.compaction.AbstractStrategyHolder
org.apache.cassandra.db.compaction.PendingRepairHolder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.db.compaction.AbstractStrategyHolder
AbstractStrategyHolder.DestinationRouter, AbstractStrategyHolder.GroupedSSTableContainer, AbstractStrategyHolder.TaskSupplier -
Field Summary
Fields inherited from class org.apache.cassandra.db.compaction.AbstractStrategyHolder
cfs -
Constructor Summary
ConstructorsConstructorDescriptionPendingRepairHolder(ColumnFamilyStore cfs, AbstractStrategyHolder.DestinationRouter router, boolean isTransient) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSSTable(SSTableReader sstable) voidbooleancontainsSSTable(SSTableReader sstable) createSSTableMultiWriter(Descriptor descriptor, long keyCount, long repairedAt, TimeUUID pendingRepair, boolean isTransient, IntervalSet<CommitLogPosition> commitLogPositions, int sstableLevel, SerializationHeader header, Collection<Index.Group> indexGroups, LifecycleNewTracker lifecycleNewTracker) getBackgroundTaskSuppliers(long gcBefore) intIterable<org.apache.cassandra.db.compaction.PendingRepairManager>getMaximalTasks(long gcBefore, boolean splitOutput) getScanners(AbstractStrategyHolder.GroupedSSTableContainer sstables, Collection<Range<Token>> ranges) getStrategyFor(SSTableReader sstable) intgetStrategyIndex(AbstractCompactionStrategy strategy) Return the directory index the given compaction strategy belongs to, or -1 if it's not held by this holdergetUserDefinedTasks(AbstractStrategyHolder.GroupedSSTableContainer sstables, long gcBefore) booleanhasDataForSession(TimeUUID sessionID) booleanhasPendingRepairSSTable(TimeUUID sessionID, SSTableReader sstable) booleanmanagesRepairedGroup(boolean isRepaired, boolean isPendingRepair, boolean isTransient) SSTables are grouped by their repaired and pending repair status.voidvoidreplaceSSTables(AbstractStrategyHolder.GroupedSSTableContainer removed, AbstractStrategyHolder.GroupedSSTableContainer added) voidsetStrategyInternal(CompactionParams params, int numTokenPartitions) voidshutdown()voidstartup()Methods inherited from class org.apache.cassandra.db.compaction.AbstractStrategyHolder
createGroupedSSTableContainer, managesSSTable
-
Constructor Details
-
PendingRepairHolder
public PendingRepairHolder(ColumnFamilyStore cfs, AbstractStrategyHolder.DestinationRouter router, boolean isTransient)
-
-
Method Details
-
startup
public void startup()- Specified by:
startupin classAbstractStrategyHolder
-
shutdown
public void shutdown()- Specified by:
shutdownin classAbstractStrategyHolder
-
setStrategyInternal
- Specified by:
setStrategyInternalin classAbstractStrategyHolder
-
managesRepairedGroup
public boolean managesRepairedGroup(boolean isRepaired, boolean isPendingRepair, boolean isTransient) Description copied from class:AbstractStrategyHolderSSTables are grouped by their repaired and pending repair status. This method determines if this holder holds the sstable for the given repaired/grouped statuses. Holders should be mutually exclusive in the groups they deal with. IOW, if one holder returns true for a given isRepaired/isPendingRepair combo, none of the others should.- Specified by:
managesRepairedGroupin classAbstractStrategyHolder
-
getStrategyFor
- Specified by:
getStrategyForin classAbstractStrategyHolder
-
allStrategies
- Specified by:
allStrategiesin classAbstractStrategyHolder
-
getManagers
-
getBackgroundTaskSuppliers
- Specified by:
getBackgroundTaskSuppliersin classAbstractStrategyHolder
-
getMaximalTasks
- Specified by:
getMaximalTasksin classAbstractStrategyHolder
-
getUserDefinedTasks
public Collection<AbstractCompactionTask> getUserDefinedTasks(AbstractStrategyHolder.GroupedSSTableContainer sstables, long gcBefore) - Specified by:
getUserDefinedTasksin classAbstractStrategyHolder
-
addSSTable
- Specified by:
addSSTablein classAbstractStrategyHolder
-
addSSTables
- Specified by:
addSSTablesin classAbstractStrategyHolder
-
removeSSTables
- Specified by:
removeSSTablesin classAbstractStrategyHolder
-
replaceSSTables
public void replaceSSTables(AbstractStrategyHolder.GroupedSSTableContainer removed, AbstractStrategyHolder.GroupedSSTableContainer added) - Specified by:
replaceSSTablesin classAbstractStrategyHolder
-
getScanners
public List<ISSTableScanner> getScanners(AbstractStrategyHolder.GroupedSSTableContainer sstables, Collection<Range<Token>> ranges) - Specified by:
getScannersin classAbstractStrategyHolder
-
createSSTableMultiWriter
public SSTableMultiWriter createSSTableMultiWriter(Descriptor descriptor, long keyCount, long repairedAt, TimeUUID pendingRepair, boolean isTransient, IntervalSet<CommitLogPosition> commitLogPositions, int sstableLevel, SerializationHeader header, Collection<Index.Group> indexGroups, LifecycleNewTracker lifecycleNewTracker) - Specified by:
createSSTableMultiWriterin classAbstractStrategyHolder
-
getStrategyIndex
Description copied from class:AbstractStrategyHolderReturn the directory index the given compaction strategy belongs to, or -1 if it's not held by this holder- Specified by:
getStrategyIndexin classAbstractStrategyHolder
-
hasDataForSession
-
containsSSTable
- Specified by:
containsSSTablein classAbstractStrategyHolder
-
getEstimatedRemainingTasks
public int getEstimatedRemainingTasks()- Specified by:
getEstimatedRemainingTasksin classAbstractStrategyHolder
-
hasPendingRepairSSTable
-