Class RTBoundCloser
java.lang.Object
org.apache.cassandra.db.transform.Transformation<UnfilteredRowIterator>
org.apache.cassandra.db.transform.RTBoundCloser
A transformation that appends an RT bound marker to row iterators in case they don't have one.
This used to happen, for example, in
ReadCommand.executeLocally(ReadExecutionController)
if DataLimits stopped the iterator on a live row that was enclosed in an
older RT.
If we don't do this, and send a response without the closing bound, we can break read/short read protection read
isolation, and potentially cause data loss.
See CASSANDRA-14515 for context.-
Method Summary
Modifier and TypeMethodDescriptionapplyToPartition(UnfilteredRowIterator partition) Applied to any rows iterator (partition) we encounter in a partitions iteratorstatic UnfilteredPartitionIteratorclose(UnfilteredPartitionIterator partitions) static UnfilteredRowIteratorclose(UnfilteredRowIterator partition) Methods inherited from class org.apache.cassandra.db.transform.Transformation
apply, apply, apply, apply, applyToDeletion, applyToMarker, applyToPartitionColumns, applyToPartitionKey, applyToRow, applyToStatic, onClose, onPartitionClose
-
Method Details
-
close
-
close
-
applyToPartition
Description copied from class:TransformationApplied to any rows iterator (partition) we encounter in a partitions iterator- Overrides:
applyToPartitionin classTransformation<UnfilteredRowIterator>
-