mapPartitions

inline fun <T, R> Dataset<T>.mapPartitions(noinline func: (Iterator<T>) -> Iterator<R>): Dataset<R>

(Kotlin-specific) Returns a new Dataset that contains the result of applying func to each partition.