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 about mappartitions() and mappartitionswithindex()



Explain about mappartitions() and mappartitionswithindex()..

Answer / Mitan Verma

mappartitions() is a transformation in Apache Spark that creates a new RDD by re-partitioning the data across a specified number of partitions. The result RDD has no dependencies on the input RDD's partition structure. On the other hand, mappartitionsWithIndex() returns an RDD with two datasets: one containing the original data, and another containing partition indices.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Spark Interview Questions

Explain benefits of lazy evaluation in RDD in Apache Spark?

1 Answers  


What is scala spark?

1 Answers  


What is a parquet file?

1 Answers  


What is spark checkpointing?

1 Answers  


Are spark dataframes immutable?

1 Answers  


What is application master in spark?

1 Answers  


What is spark technology?

1 Answers  


How tasks are created in spark?

1 Answers  


Name types of Cluster Managers in Spark.

1 Answers  


Name some internal daemons used in spark?

1 Answers  


Describe the run-time architecture of Spark?

1 Answers  


What is javardd?

1 Answers  


Categories