Class StoppingTransformation<I extends BaseRowIterator<?>>
java.lang.Object
org.apache.cassandra.db.transform.Transformation<I>
org.apache.cassandra.db.transform.StoppingTransformation<I>
- Direct Known Subclasses:
DataLimits.Counter
public abstract class StoppingTransformation<I extends BaseRowIterator<?>>
extends Transformation<I>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.cassandra.db.transform.BaseIteratorprotected org.apache.cassandra.db.transform.BaseIterator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattachTo(BasePartitions partitions) protected voidprotected voidonClose()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 functionprotected voidRun 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 functionprotected voidstop()If invoked by a subclass, any partitions iterator this transformation has been applied to will terminate after any currently-processing item is returned, as will any row/unfiltered iteratorprotected voidIf invoked by a subclass, any rows/unfiltered iterator this transformation has been applied to will terminate after any currently-processing item is returnedMethods inherited from class org.apache.cassandra.db.transform.Transformation
apply, apply, apply, apply, applyToDeletion, applyToMarker, applyToPartition, applyToPartitionColumns, applyToPartitionKey, applyToRow, applyToStatic
-
Field Details
-
rows
protected org.apache.cassandra.db.transform.BaseIterator rows -
partitions
protected org.apache.cassandra.db.transform.BaseIterator partitions
-
-
Constructor Details
-
StoppingTransformation
public StoppingTransformation()
-
-
Method Details
-
stop
@DontInline protected void stop()If invoked by a subclass, any partitions iterator this transformation has been applied to will terminate after any currently-processing item is returned, as will any row/unfiltered iterator -
stopInPartition
@DontInline protected void stopInPartition()If invoked by a subclass, any rows/unfiltered iterator this transformation has been applied to will terminate after any currently-processing item is returned -
attachTo
-
attachTo
-
onClose
protected void onClose()Description copied from class:TransformationRun 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- Overrides:
onClosein classTransformation<I extends BaseRowIterator<?>>
-
onPartitionClose
protected void onPartitionClose()Description copied from class:TransformationRun 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- Overrides:
onPartitionClosein classTransformation<I extends BaseRowIterator<?>>
-