public static class TopPartitionTracker.TombstoneCounter extends Transformation<UnfilteredRowIterator>
Constructor and Description |
---|
TombstoneCounter(TopPartitionTracker.Collector collector,
int nowInSec) |
Modifier and Type | Method and Description |
---|---|
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
|
Row |
applyToRow(Row row)
Applied to any row we encounter in a rows iterator
|
void |
onPartitionClose()
Run on the close of any (logical) rows iterator this function was applied to
We stipulate logical, because if applied to a transformed iterator the lifetime of the iterator
object may be longer than the lifetime of the "logical" iterator it was applied to; if the iterator
is refilled with MoreContents, for instance, the iterator may outlive this function
|
apply, apply, apply, apply, applyToDeletion, applyToPartitionColumns, applyToPartitionKey, applyToStatic, onClose
public TombstoneCounter(TopPartitionTracker.Collector collector, int nowInSec)
public Row applyToRow(Row row)
Transformation
applyToRow
in class Transformation<UnfilteredRowIterator>
public RangeTombstoneMarker applyToMarker(RangeTombstoneMarker marker)
Transformation
applyToMarker
in class Transformation<UnfilteredRowIterator>
protected UnfilteredRowIterator applyToPartition(UnfilteredRowIterator partition)
Transformation
applyToPartition
in class Transformation<UnfilteredRowIterator>
public void onPartitionClose()
Transformation
onPartitionClose
in class Transformation<UnfilteredRowIterator>
Copyright © 2009- The Apache Software Foundation