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 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 Row applyToStatic(Row row)
protected DeletionTime applyToDeletion(DeletionTime deletionTime)
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 © 2017 The Apache Software Foundation