deprecate in JavaRDDLike