Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/1279#discussion_r14822032
--- Diff: core/src/main/scala/org/apache/spark/SparkConf.scala ---
@@ -167,6 +175,8 @@ class SparkConf(loadDefaults: Boolean) extends
Cloneable with Logging {
getOption(key).map(_.toInt).getOrElse(defaultValue)
}
+ def getIntOption(key: String): Option[Int] = getOption(key).map(_.toInt)
--- End diff --
To keep things consistent (these api's are public) I don't think we should
add the getIntOption without adding other routines like getLongOption, etc.
For now can you just use getOption and then make it an Int.
---
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.
---