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 |
|---|---|
DeletionTime |
applyToDeletion(DeletionTime deletionTime)
Applied to the partition-level deletion of any rows iterator.
|
RangeTombstoneMarker |
applyToMarker(RangeTombstoneMarker marker)
Applied to any RTM we encounter in a rows/unfiltered iterator
|
UnfilteredRowIterator |
applyToPartition(UnfilteredRowIterator partition)
Applied to any rows iterator (partition) we encounter in a partitions iterator
|
Row |
applyToRow(Row row)
Applied to any row we encounter in a rows iterator
|
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, onPartitionClosepublic 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()
public UnfilteredRowIterator applyToPartition(UnfilteredRowIterator partition)
TransformationapplyToPartition in class Transformation<UnfilteredRowIterator>public DeletionTime applyToDeletion(DeletionTime deletionTime)
TransformationapplyToDeletion in class Transformation<UnfilteredRowIterator>public Row applyToStatic(Row row)
TransformationapplyToStatic in class Transformation<UnfilteredRowIterator>public Row applyToRow(Row row)
TransformationapplyToRow in class Transformation<UnfilteredRowIterator>public RangeTombstoneMarker applyToMarker(RangeTombstoneMarker marker)
TransformationapplyToMarker in class Transformation<UnfilteredRowIterator>Copyright © 2016 The Apache Software Foundation