public abstract class PurgeFunction extends Transformation<UnfilteredRowIterator>
Constructor and Description |
---|
PurgeFunction(boolean isForThrift,
int nowInSec,
int gcBefore,
int oldestUnrepairedTombstone,
boolean onlyPurgeRepairedTombstones) |
Modifier and Type | Method and Description |
---|---|
protected DeletionTime |
applyToDeletion(DeletionTime deletionTime)
Applied to the partition-level deletion of any rows iterator.
|
protected RangeTombstoneMarker |
applyToMarker(RangeTombstoneMarker marker)
Applied to any RTM we encounter in a rows/unfiltered iterator
|
protected UnfilteredRowIterator |
applyToPartition(UnfilteredRowIterator partition)
Applied to any rows iterator (partition) we encounter in a partitions iterator
|
protected Row |
applyToRow(Row row)
Applied to any row we encounter in a rows iterator
|
protected Row |
applyToStatic(Row row)
Applied to the static row of any rows iterator.
|
protected abstract long |
getMaxPurgeableTimestamp() |
protected void |
onEmptyPartitionPostPurge(DecoratedKey partitionKey) |
protected void |
onNewPartition(DecoratedKey partitionKey) |
protected void |
updateProgress() |
apply, apply, apply, apply, onClose, onPartitionClose
public PurgeFunction(boolean isForThrift, int nowInSec, int gcBefore, int oldestUnrepairedTombstone, boolean onlyPurgeRepairedTombstones)
protected abstract long getMaxPurgeableTimestamp()
protected void onNewPartition(DecoratedKey partitionKey)
protected void onEmptyPartitionPostPurge(DecoratedKey partitionKey)
protected void updateProgress()
protected UnfilteredRowIterator applyToPartition(UnfilteredRowIterator partition)
Transformation
applyToPartition
in class Transformation<UnfilteredRowIterator>
protected DeletionTime applyToDeletion(DeletionTime deletionTime)
Transformation
applyToDeletion
in class Transformation<UnfilteredRowIterator>
protected Row applyToStatic(Row row)
Transformation
applyToStatic
in class Transformation<UnfilteredRowIterator>
protected Row applyToRow(Row row)
Transformation
applyToRow
in class Transformation<UnfilteredRowIterator>
protected RangeTombstoneMarker applyToMarker(RangeTombstoneMarker marker)
Transformation
applyToMarker
in class Transformation<UnfilteredRowIterator>
Copyright © 2016 The Apache Software Foundation