Re: mapPartitions vs foreachPartition
True. On Mon, Apr 20, 2015 at 4:14 PM, Arun Patel wrote: > mapPartitions is a transformation and foreachPartition is a an action? > > Thanks > Arun > > On Mon, Apr 20, 2015 at 4:38 AM, Archit Thakur > wrote: > >> The same, which is between map and foreach. map takes iterator returns >> iterator foreach takes iterator returns Unit. >> >> On Mon, Apr 20, 2015 at 4:05 PM, Arun Patel >> wrote: >> >>> What is difference between mapPartitions vs foreachPartition? >>> >>> When to use these? >>> >>> Thanks, >>> Arun >>> >> >> >
Re: mapPartitions vs foreachPartition
mapPartitions is a transformation and foreachPartition is a an action? Thanks Arun On Mon, Apr 20, 2015 at 4:38 AM, Archit Thakur wrote: > The same, which is between map and foreach. map takes iterator returns > iterator foreach takes iterator returns Unit. > > On Mon, Apr 20, 2015 at 4:05 PM, Arun Patel > wrote: > >> What is difference between mapPartitions vs foreachPartition? >> >> When to use these? >> >> Thanks, >> Arun >> > >
Re: mapPartitions vs foreachPartition
The same, which is between map and foreach. map takes iterator returns iterator foreach takes iterator returns Unit. On Mon, Apr 20, 2015 at 4:05 PM, Arun Patel wrote: > What is difference between mapPartitions vs foreachPartition? > > When to use these? > > Thanks, > Arun >
mapPartitions vs foreachPartition
What is difference between mapPartitions vs foreachPartition? When to use these? Thanks, Arun