I'm curious here, Shivaram, couldn't you pass in primitive types? If that's a problem with Rating being a case class, we should make it not be one, so that it can also be initialized in Java.