Github user marmbrus commented on the pull request:
https://github.com/apache/spark/pull/2284#issuecomment-54917551
I'm not sure we want to do this. The specific getters / setters are really
only so that we can avoid boxing primitives. We added getString mostly
because at one point we were considering having some kind of internal mutable
backing data structure here for performance (and we still might).
What do you think about something like `def getAs[T](i: Int): T =
apply(i).asInstanceOf[T]` in `Row`?
/cc @liancheng @rxin
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]