Class PurgeFunction
java.lang.Object
org.apache.cassandra.db.transform.Transformation<UnfilteredRowIterator>
org.apache.cassandra.db.partitions.PurgeFunction
-
Constructor Summary
ConstructorsConstructorDescriptionPurgeFunction(long nowInSec, long gcBefore, long oldestUnrepairedTombstone, boolean onlyPurgeRepairedTombstones, boolean enforceStrictLiveness) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 LongPredicateprotected voidonEmptyPartitionPostPurge(DecoratedKey partitionKey) protected voidonNewPartition(DecoratedKey partitionKey) protected voidsetReverseOrder(boolean isReverseOrder) protected booleanprotected voidMethods inherited from class org.apache.cassandra.db.transform.Transformation
apply, apply, apply, apply, applyToPartitionColumns, applyToPartitionKey, onClose, onPartitionClose
-
Constructor Details
-
PurgeFunction
public PurgeFunction(long nowInSec, long gcBefore, long oldestUnrepairedTombstone, boolean onlyPurgeRepairedTombstones, boolean enforceStrictLiveness)
-
-
Method Details
-
getPurgeEvaluator
-
onNewPartition
-
onEmptyPartitionPostPurge
-
updateProgress
protected void updateProgress() -
shouldIgnoreGcGrace
protected boolean shouldIgnoreGcGrace() -
setReverseOrder
protected void setReverseOrder(boolean isReverseOrder) -
applyToPartition
Description copied from class:TransformationApplied to any rows iterator (partition) we encounter in a partitions iterator- Overrides:
applyToPartitionin classTransformation<UnfilteredRowIterator>
-
applyToDeletion
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
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
Description copied from class:TransformationApplied to any row we encounter in a rows iterator- Overrides:
applyToRowin classTransformation<UnfilteredRowIterator>
-
applyToMarker
Description copied from class:TransformationApplied to any RTM we encounter in a rows/unfiltered iterator- Overrides:
applyToMarkerin classTransformation<UnfilteredRowIterator>
-