def foreach(func: ForeachFunction[T]): Unit
(Java-specific) Runs func on each***element***of this Dataset.
def foreach(f: (T) ⇒ Unit): Unit
Applies a function f to all***rows***.
def foreachPartition(func: ForeachPartitionFunction[T]): Unit
(Java-specific) Runs func on each partition of this Dataset.
def foreachPartition(f: (Iterator[T]) ⇒ Unit): Unit
Applies a function f to each partition of this Dataset.
2条答案
按热度按时间68bkxrlz1#
方法是这样的,
5sxhfpxr2#