This should be in JavaRDDLike, too.