Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain fold() operation in spark?



Explain fold() operation in spark?..

Answer / Narendra Pal Singh

The fold() operation in Spark is a reduction function that reduces a RDD (Resilient Distributed Dataset) to a single value by iteratively combining all elements using an associative binary function. The fold() function takes two arguments: a seed value and a function for combining values. Unlike reduce(), fold() returns the initial seed value instead of the accumulator after iteration.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Spark Interview Questions

What is apache spark core?

1 Answers  


In how many ways RDDs can be created? Explain.

1 Answers  


Define Partitions?

1 Answers  


How much faster is Apache spark than Hadoop?

1 Answers  


How can you minimize data transfers when working with Spark?

1 Answers  


What is the difference between Spark Transform in DStream and map ?

1 Answers  


What languages support spark?

1 Answers  


Define Partition in Apache Spark?

1 Answers  


What is the default partition in spark?

1 Answers  


Explain the use of File system API in Apache Spark

1 Answers  


List the advantage of Parquet file in Apache Spark?

0 Answers  


What is the difference between map and flatmap?

1 Answers  


Categories