This should call `rdd.setGenerator(_generator)`.  I always prefer to forward to the existing Scala API methods since it reduces maintenance burdens (what if the Scala setGenerator() added logging or error-checking, for example)?