(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
<invalid inheritdoc annotation>
<invalid inheritdoc annotation>
After catching an exception cleans up all the resources calling the cleanup function and will rethrow such exception again.
<invalid inheritdoc annotation>
<invalid inheritdoc annotation>
Iterator that calls a cleanup function after the given iterator has finished or an exception has been thrown.
type of the rows in the iterator