Avoid a function call.
Fix typo.
Make stuff immutable.
Provide function for looking up partitions by id.
Refactor rdds.

Move functions into the RDD definitions.
Get rid of broken mixed RDD.