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...


What are the exact differences between reduce and fold operation in Spark?



What are the exact differences between reduce and fold operation in Spark?..

Answer / Trapti Kansal

reduce: It is a transformational action in Spark that reduces an RDD to a single value by applying an associative and commutative binary function. The default function is concatenation for strings, addition for numbers, etc.nfold: It is a more generalized version of reduce. Instead of reducing to a single value, fold can accumulate the result into a user-defined datatype (not just a single value).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Spark Interview Questions

What are Actions? Give some examples.

1 Answers  


What is meant by Transformation? Give some examples.

0 Answers  


What is lambda architecture spark?

1 Answers  


What exactly is spark?

1 Answers  


Explain parquet file?

1 Answers  


Explain about the different cluster managers in Apache Spark

1 Answers  


What do you mean by Speculative execution in Apache Spark?

1 Answers  


Name the two types of shared variable available in Apache Spark?

1 Answers  


Does spark replace hadoop?

1 Answers  


Explain Spark Executor

1 Answers  


Explain the lookup() operation in Spark?

1 Answers  


Who invented the first spark plug?

1 Answers  


Categories