Class PurgeFunction
- java.lang.Object
-
- org.apache.cassandra.db.transform.Transformation<UnfilteredRowIterator>
-
- org.apache.cassandra.db.partitions.PurgeFunction
-
public abstract class PurgeFunction extends Transformation<UnfilteredRowIterator>
-
-
Constructor Summary
Constructors Constructor Description PurgeFunction(int nowInSec, int gcBefore, int oldestUnrepairedTombstone, boolean onlyPurgeRepairedTombstones, boolean enforceStrictLiveness)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected DeletionTimeapplyToDeletion(DeletionTime deletionTime)Applied to the partition-level deletion of any rows iterator.protected RangeTombstoneMarkerapplyToMarker(RangeTombstoneMarker marker)Applied to any RTM we encounter in a rows/unfiltered iteratorprotected UnfilteredRowIteratorapplyToPartition(UnfilteredRowIterator partition)Applied to any rows iterator (partition) we encounter in a partitions iteratorprotected RowapplyToRow(Row row)Applied to any row we encounter in a rows iteratorprotected RowapplyToStatic(Row row)Applied to the static row of any rows iterator.protected abstract java.util.function.LongPredicategetPurgeEvaluator()protected voidonEmptyPartitionPostPurge(DecoratedKey partitionKey)protected voidonNewPartition(DecoratedKey partitionKey)protected voidsetReverseOrder(boolean isReverseOrder)protected voidupdateProgress()-
Methods inherited from class org.apache.cassandra.db.transform.Transformation
apply, apply, apply, apply, applyToPartitionColumns, applyToPartitionKey, onClose, onPartitionClose
-
-
-
-
Method Detail
-
getPurgeEvaluator
protected abstract java.util.function.LongPredicate getPurgeEvaluator()
-
onNewPartition
protected void onNewPartition(DecoratedKey partitionKey)
-
onEmptyPartitionPostPurge
protected void onEmptyPartitionPostPurge(DecoratedKey partitionKey)
-
updateProgress
protected void updateProgress()
-
setReverseOrder
protected void setReverseOrder(boolean isReverseOrder)
-
applyToPartition
protected UnfilteredRowIterator applyToPartition(UnfilteredRowIterator partition)
Description copied from class:TransformationApplied to any rows iterator (partition) we encounter in a partitions iterator- Overrides:
applyToPartitionin classTransformation<UnfilteredRowIterator>
-
applyToDeletion
protected DeletionTime applyToDeletion(DeletionTime deletionTime)
Description copied from class:TransformationApplied to the partition-level deletion of any rows iterator. NOTE that this is only applied to the first iterator in any sequence of iterators filled by a MoreContents; the static data for such iterators is all expected to be equal- Overrides:
applyToDeletionin classTransformation<UnfilteredRowIterator>
-
applyToStatic
protected Row applyToStatic(Row row)
Description copied from class:TransformationApplied to the static row of any rows iterator. NOTE that this is only applied to the first iterator in any sequence of iterators filled by a MoreContents; the static data for such iterators is all expected to be equal- Overrides:
applyToStaticin classTransformation<UnfilteredRowIterator>
-
applyToRow
protected Row applyToRow(Row row)
Description copied from class:TransformationApplied to any row we encounter in a rows iterator- Overrides:
applyToRowin classTransformation<UnfilteredRowIterator>
-
applyToMarker
protected RangeTombstoneMarker applyToMarker(RangeTombstoneMarker marker)
Description copied from class:TransformationApplied to any RTM we encounter in a rows/unfiltered iterator- Overrides:
applyToMarkerin classTransformation<UnfilteredRowIterator>
-
-