public static UnfilteredPartitionIterator apply(UnfilteredPartitionIterator iterator, Transformation<? super UnfilteredRowIterator> transformation) { return add(mutable(iterator), transformation); } public static PartitionIterator apply(PartitionIterator iterator, Transformation<? super RowIterator> transformation)
@Override void add(Transformation add) { super.add(add); partitionColumns = add.applyToPartitionColumns(partitionColumns); partitionLevelDeletion = add.applyToDeletion(partitionLevelDeletion); }
@Override protected Unfiltered applyOne(Unfiltered value, Transformation transformation) { return value == null ? null : value instanceof Row ? transformation.applyToRow((Row) value) : transformation.applyToMarker((RangeTombstoneMarker) value); }
public static UnfilteredRowIterator extend(UnfilteredRowIterator iterator, MoreRows<? super UnfilteredRowIterator> more, PartitionColumns columns) { return add(Transformation.wrapIterator(iterator, columns), more); }
@Override void add(Transformation transformation) { transformation.attachTo(this); super.add(transformation); // transform any existing data if (staticRow != null) staticRow = transformation.applyToStatic(staticRow); next = applyOne(next, transformation); partitionKey = transformation.applyToPartitionKey(partitionKey); }
protected BaseRowIterator<?> applyOne(BaseRowIterator<?> value, Transformation transformation) { return value == null ? null : transformation.applyToPartition(value); }
void add(Transformation transformation) { transformation.attachTo(this); super.add(transformation); next = applyOne(next, transformation); }
@Override void add(Transformation transformation) { transformation.attachTo(this); super.add(transformation); // transform any existing data if (staticRow != null) staticRow = transformation.applyToStatic(staticRow); next = applyOne(next, transformation); partitionKey = transformation.applyToPartitionKey(partitionKey); }
@Override protected Unfiltered applyOne(Unfiltered value, Transformation transformation) { return value == null ? null : value instanceof Row ? transformation.applyToRow((Row) value) : transformation.applyToMarker((RangeTombstoneMarker) value); }
public static UnfilteredRowIterator extend(UnfilteredRowIterator iterator, MoreRows<? super UnfilteredRowIterator> more, PartitionColumns columns) { return add(Transformation.wrapIterator(iterator, columns), more); }
protected BaseRowIterator<?> applyOne(BaseRowIterator<?> value, Transformation transformation) { return value == null ? null : transformation.applyToPartition(value); }
void add(Transformation transformation) { transformation.attachTo(this); super.add(transformation); next = applyOne(next, transformation); }
public static UnfilteredPartitionIterator apply(UnfilteredPartitionIterator iterator, Transformation<? super UnfilteredRowIterator> transformation) { return add(mutable(iterator), transformation); } public static PartitionIterator apply(PartitionIterator iterator, Transformation<? super RowIterator> transformation)
@Override void add(Transformation transformation) { transformation.attachTo(this); super.add(transformation); // transform any existing data if (staticRow != null) staticRow = transformation.applyToStatic(staticRow); next = applyOne(next, transformation); partitionKey = transformation.applyToPartitionKey(partitionKey); }
@Override protected Unfiltered applyOne(Unfiltered value, Transformation transformation) { return value == null ? null : value instanceof Row ? transformation.applyToRow((Row) value) : transformation.applyToMarker((RangeTombstoneMarker) value); }
@Override void add(Transformation add) { super.add(add); partitionColumns = add.applyToPartitionColumns(partitionColumns); partitionLevelDeletion = add.applyToDeletion(partitionLevelDeletion); }
public static UnfilteredRowIterator extend(UnfilteredRowIterator iterator, MoreRows<? super UnfilteredRowIterator> more, PartitionColumns columns) { return add(Transformation.wrapIterator(iterator, columns), more); }
protected BaseRowIterator<?> applyOne(BaseRowIterator<?> value, Transformation transformation) { return value == null ? null : transformation.applyToPartition(value); }