public abstract class PurgeFunction extends Transformation<UnfilteredRowIterator>
Constructor and Description |
---|
PurgeFunction(boolean isForThrift,
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, onPartitionClose
public PurgeFunction(boolean isForThrift, 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)
Transformation
applyToPartition
in class Transformation<UnfilteredRowIterator>
public DeletionTime applyToDeletion(DeletionTime deletionTime)
Transformation
applyToDeletion
in class Transformation<UnfilteredRowIterator>
public Row applyToStatic(Row row)
Transformation
applyToStatic
in class Transformation<UnfilteredRowIterator>
public Row applyToRow(Row row)
Transformation
applyToRow
in class Transformation<UnfilteredRowIterator>
public RangeTombstoneMarker applyToMarker(RangeTombstoneMarker marker)
Transformation
applyToMarker
in class Transformation<UnfilteredRowIterator>
Copyright © 2015 The Apache Software Foundation