Use JavaRDDLike signature where possible.