public abstract class Transformation<I extends BaseRowIterator<?>>
extends java.lang.Object
| Constructor and Description | 
|---|
| Transformation() | 
| Modifier and Type | Method and Description | 
|---|---|
| static PartitionIterator | apply(PartitionIterator iterator,
     Transformation<? super RowIterator> transformation) | 
| static RowIterator | apply(RowIterator iterator,
     Transformation<?> transformation) | 
| static UnfilteredPartitionIterator | apply(UnfilteredPartitionIterator iterator,
     Transformation<? super UnfilteredRowIterator> transformation) | 
| static UnfilteredRowIterator | apply(UnfilteredRowIterator iterator,
     Transformation<?> transformation) | 
| 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 I | applyToPartition(I partition)Applied to any rows iterator (partition) we encounter in a partitions iterator | 
| protected PartitionColumns | applyToPartitionColumns(PartitionColumns columns)Applied to the  PartitionColumnsof any rows iterator. | 
| protected DecoratedKey | applyToPartitionKey(DecoratedKey key)Applied to the partition key of any rows/unfiltered iterator we are applied to | 
| 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 void | onClose()Run on the close of any (logical) partitions 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 | 
| protected 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 | 
protected void onClose()
protected void onPartitionClose()
protected I applyToPartition(I partition)
protected RangeTombstoneMarker applyToMarker(RangeTombstoneMarker marker)
protected DecoratedKey applyToPartitionKey(DecoratedKey key)
protected Row applyToStatic(Row row)
protected DeletionTime applyToDeletion(DeletionTime deletionTime)
protected PartitionColumns applyToPartitionColumns(PartitionColumns columns)
PartitionColumns of any rows iterator.
 NOTE: same remark than for applyToDeletion: it is only applied to the first iterator in a sequence of iterators
 filled by MoreContents.public static UnfilteredPartitionIterator apply(UnfilteredPartitionIterator iterator, Transformation<? super UnfilteredRowIterator> transformation)
public static PartitionIterator apply(PartitionIterator iterator, Transformation<? super RowIterator> transformation)
public static UnfilteredRowIterator apply(UnfilteredRowIterator iterator, Transformation<?> transformation)
public static RowIterator apply(RowIterator iterator, Transformation<?> transformation)
Copyright © 2018 The Apache Software Foundation